DEBUG_SQL isn't defined during install, use quotes to avoid errors

This commit is contained in:
Daku 2015-03-20 22:12:16 +00:00 committed by Shish
parent 55c3fd8f38
commit b81d457bf7

View File

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