]> git.mjollnir.org Git - moodle.git/commitdiff
Improve error message.
authortjhunt <tjhunt>
Tue, 18 Nov 2008 04:22:57 +0000 (04:22 +0000)
committertjhunt <tjhunt>
Tue, 18 Nov 2008 04:22:57 +0000 (04:22 +0000)
lib/dml/moodle_database.php

index f22636e23779ac560b23dd619b70a8f80671a327..ba72a1df722293f5c59012bee1d866ce5840719c 100644 (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];
             }