From 6e6138793b86d6860fbc14c92a2d986c169fcc1d Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 31 Jan 2012 12:16:47 +0000 Subject: [PATCH] DEBUG_SQL can be null for user-defined --- core/util.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index 1def3356..53212c26 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -409,7 +409,7 @@ function check_cli() { */ function _count_execs($db, $sql, $inputarray) { global $_execs; - if(DEBUG_SQL) { + if((DEBUG_SQL === true) || (is_null(DEBUG_SQL) && @$_GET['DEBUG_SQL'])) { $fp = @fopen("data/sql.log", "a"); if($fp) { if(is_array($inputarray)) {