Bug #5810 missing ' > 7' in debug test. Merged from MOODLE_16_STABLE.

This commit is contained in:
tjhunt
2006-06-13 14:37:45 +00:00
parent e758a8f627
commit 3fae19dd98
+1 -1
View 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.