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)) {