diff options
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/aur.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 00a8c8ce..55cc8a9e 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -235,7 +235,7 @@ function db_query($query="", $db_handle="") { die("DB handle was not provided to db_query"); } - if (SQL_DEBUG == 1) { + if (defined('SQL_DEBUG') && SQL_DEBUG == 1) { $bt = debug_backtrace(); error_log("DEBUG: ".$bt[0]['file'].":".$bt[0]['line']." query: $query\n"); } |