mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
1e20af9aed
commit
1f79258e81
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ function db_query($query="", $db_handle="") {
|
||||||
die("DB handle was not provided to db_query");
|
die("DB handle was not provided to db_query");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SQL_DEBUG == 1) {
|
if (defined('SQL_DEBUG') && SQL_DEBUG == 1) {
|
||||||
$bt = debug_backtrace();
|
$bt = debug_backtrace();
|
||||||
error_log("DEBUG: ".$bt[0]['file'].":".$bt[0]['line']." query: $query\n");
|
error_log("DEBUG: ".$bt[0]['file'].":".$bt[0]['line']." query: $query\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue