]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5810 missing ' > 7' in debug test. Merged from MOODLE_16_STABLE.
authortjhunt <tjhunt>
Tue, 13 Jun 2006 14:37:45 +0000 (14:37 +0000)
committertjhunt <tjhunt>
Tue, 13 Jun 2006 14:37:45 +0000 (14:37 +0000)
lib/datalib.php

index 236809db7c65daff90ee6797c74448469ef636fb..319145846f21fc81981125f96d7c156cd0174ef1 100644 (file)
@@ -567,7 +567,7 @@ function get_record_sql($sql, $expectmultiple=false, $nolimit=false) {
         $limit = '';
     } else if ($expectmultiple) {
         $limit = ' LIMIT 1';
-    } else if (isset($CFG->debug) && $CFG->debug) {
+    } else if (isset($CFG->debug) && $CFG->debug > 7) {
         // Debugging mode - don't use a limit of 1, but do change the SQL, because sometimes that
         // causes errors, and in non-debug mode you don't see the error message and it is 
         // impossible to know what's wrong.