From c8bb8644c4b6ae2dfcbf32777ca61ea91b842e0d Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 3 Oct 2007 12:04:02 +0000 Subject: [PATCH] Don't use the 100 limit for debugging in anything lower than DEBUG_DEVELOPER mode --- lib/dmllib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index 2c4337a7bd..8a890dbd62 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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. -- 2.39.5