Fix and improve error message.

This commit is contained in:
tjhunt
2008-10-29 06:54:32 +00:00
parent ce5e846c72
commit 10e99feaa2
+4 -1
View File
@@ -418,7 +418,10 @@ abstract class moodle_database {
}
if ($count > count($params)) {
throw new dml_exception('invalidqueryparam');
$a = new stdClass;
$a->expected = $count;
$a->actual = count($params);
throw new dml_exception('invalidqueryparam', $a);
}
if ($type & $allowed_types) { // bitwise AND