aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index af2c6d6b3..99fb01cbb 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -446,10 +446,12 @@ function pwg_write_debug()
function pwg_query($query)
{
+ global $conf;
+
$start = get_moment();
$result = mysql_query($query);
- if (DEBUG)
+ if ($conf['show_queries'])
{
global $count_queries,$queries_time;