From: niekt0 Date: Wed, 16 Feb 2011 10:30:49 +0000 (+0100) Subject: Undefined variable fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=73d8381a1acc37275abf7ec85ecccec7dcf6c86e;p=mirrors%2FKyberia-bloodline.git Undefined variable fix --- 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);