Improve error message.

This commit is contained in:
tjhunt 2008-11-18 04:22:57 +00:00
parent d559bdc063
commit 34a36b2e85

View File

@ -487,7 +487,7 @@ abstract class moodle_database {
foreach ($named_matches[0] as $key) {
$key = trim($key, ':');
if (!array_key_exists($key, $params)) {
throw new dml_exception('missingkeyinsql', '', '', $key);
throw new dml_exception('missingkeyinsql', $key, '');
}
$finalparams[$key] = $params[$key];
}