diff options
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 4 |
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; |