From b81d457bf7550f6dc3371f1cff73d77b365a22a0 Mon Sep 17 00:00:00 2001 From: Daku Date: Fri, 20 Mar 2015 22:12:16 +0000 Subject: [PATCH] DEBUG_SQL isn't defined during install, use quotes to avoid errors --- 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 c05d8097..04c23078 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -674,7 +674,7 @@ $_execs = 0; */ function _count_execs($db, $sql, $inputarray) { global $_execs; - if ((defined(DEBUG_SQL) && DEBUG_SQL === true) || (!defined(DEBUG_SQL) && @$_GET['DEBUG_SQL'])) { + if ((defined('DEBUG_SQL') && DEBUG_SQL === true) || (!defined('DEBUG_SQL') && @$_GET['DEBUG_SQL'])) { $fp = @fopen("data/sql.log", "a"); if($fp) { if(isset($inputarray) && is_array($inputarray)) {