summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-28 20:59:06 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-08-10 14:34:07 +0200
commit1f79258e81207829c59f4a8fa4d44a32683e2a77 (patch)
treefca90dbe6bc3892d53f0be10b523c5127c22783e
parent1e20af9aed1bdd39b6eead4bf74d97e984b3297e (diff)
downloadaur-1f79258e81207829c59f4a8fa4d44a32683e2a77.tar.gz
aur-1f79258e81207829c59f4a8fa4d44a32683e2a77.tar.xz
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 <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/lib/aur.inc.php2
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");
}