mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Improve error message.
This commit is contained in:
parent
d559bdc063
commit
34a36b2e85
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user