From 10f9ce0e0bb959cdf5ab2f88b9d7f9cf06a5dccf Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 30 Aug 2005 00:36:18 +0000 Subject: [PATCH] Fixed notice: Undefined property: db in /isso/template.php on line 295 --- template.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template.php b/template.php index c0abf50..11bbc2f 100644 --- a/template.php +++ b/template.php @@ -292,7 +292,10 @@ class DB_Template $debug .= "\n\t
  • Source Control: $scinfo
  • "; // query information - $debug .= "\n\t
  • Total Queries: " . sizeof($_isso->db->history) . " (sanitize($_SERVER['REQUEST_URI']) . ((strpos($_SERVER['REQUEST_URI'], '?') !== false) ? '&query=1' : '?query=1') . "\">?)
  • "; + if (is_object($_isso->db)) + { + $debug .= "\n\t
  • Total Queries: " . sizeof($_isso->db->history) . " (sanitize($_SERVER['REQUEST_URI']) . ((strpos($_SERVER['REQUEST_URI'], '?') !== false) ? '&query=1' : '?query=1') . "\">?)
  • "; + } // total execution time if (defined('ISSO_MT_START')) -- 2.43.5