]> git.mjollnir.org Git - moodle.git/commitdiff
Don't use the 100 limit for debugging in anything lower than DEBUG_DEVELOPER mode
authormoodler <moodler>
Wed, 3 Oct 2007 12:04:02 +0000 (12:04 +0000)
committermoodler <moodler>
Wed, 3 Oct 2007 12:04:02 +0000 (12:04 +0000)
lib/dmllib.php

index 2c4337a7bd85c2799e1440bb981222de72226eb0..8a890dbd62323ceee64a058a7044531f3049cbbb 100644 (file)
@@ -465,7 +465,7 @@ function get_record_sql($sql, $expectmultiple=false, $nolimit=false) {
     } else if ($expectmultiple) {
         $limitfrom = 0;
         $limitnum  = 1;
-    } else if (debugging()) {
+    } else if (debugging('', DEBUG_DEVELOPER)) {
         // 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.