From: tjhunt Date: Tue, 13 Jun 2006 14:37:45 +0000 (+0000) Subject: Bug #5810 missing ' > 7' in debug test. Merged from MOODLE_16_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3fae19dd9840b9a399f63baab9ae46483133fd80;p=moodle.git Bug #5810 missing ' > 7' in debug test. Merged from MOODLE_16_STABLE. --- diff --git a/lib/datalib.php b/lib/datalib.php index 236809db7c..319145846f 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -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.