From 1f79258e81207829c59f4a8fa4d44a32683e2a77 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 28 Jul 2011 13:59:06 -0500 Subject: Allow SQL_DEBUG to be undefined We shouldn't require this as it is a new config parameter and it causes PHP warnings to be spewed everywhere. Signed-off-by: Dan McGee Signed-off-by: Lukas Fleischer --- web/lib/aur.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib/aur.inc.php') diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 00a8c8c..55cc8a9 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"); } -- cgit v1.2.3-70-g09d2