Bug #5810 missing ' > 7' in debug test. Merged from MOODLE_16_STABLE.
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user