From 1e520b723c7e4884f16e115a879285a9338bd844 Mon Sep 17 00:00:00 2001 From: Daniel Hromada Date: Wed, 26 Jan 2011 22:46:33 +0100 Subject: [PATCH] $_SESSION['debugging'] has to be true in order to print out query --- 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 6566ce9..16a527c 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 (isset($_SESSION['debugging'])) { + if ($_SESSION['debugging']) { echo $sql; global $timer_start; echo "
".SubStr((Time()+SubStr(MicroTime(),0,8)-$timer_start),0,7); -- 2.30.2