aboutsummaryrefslogtreecommitdiffstats
path: root/include/page_tail.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/page_tail.php')
-rw-r--r--include/page_tail.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/page_tail.php b/include/page_tail.php
index 8ea329f4d..e8b4ae349 100644
--- a/include/page_tail.php
+++ b/include/page_tail.php
@@ -40,7 +40,13 @@ $template->assign_vars(
//------------------------------------------------------------- generation time
if ($conf['show_gt'])
{
- $time = get_elapsed_time( $t2, get_moment() );
+ $time = get_elapsed_time($t2, get_moment());
+
+ if (!isset($count_queries))
+ {
+ $count_queries = 0;
+ $queries_time = 0;
+ }
$template->assign_block_vars(
'debug',