From 73d8381a1acc37275abf7ec85ecccec7dcf6c86e Mon Sep 17 00:00:00 2001 From: niekt0 Date: Wed, 16 Feb 2011 11:30:49 +0100 Subject: [PATCH] Undefined variable fix --- wwwroot/inc/database.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/inc/database.inc b/wwwroot/inc/database.inc index 16a527c..5232f30 100644 --- a/wwwroot/inc/database.inc +++ b/wwwroot/inc/database.inc @@ -88,7 +88,7 @@ function query($sql) { $this->_queryId = mysql_query($sql,$this->_linkId); - if ($_SESSION['debugging']) { + if ((isset($_SESSION['debugging']) && $_SESSION['debugging']) { echo $sql; global $timer_start; echo "
".SubStr((Time()+SubStr(MicroTime(),0,8)-$timer_start),0,7); -- 2.30.2