From ab0a3cd2fdf7eda4044dac0db0930dc676bb7243 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 29 Jan 2006 07:09:51 +0000 Subject: [PATCH] Only get the query time if ISSO-Functions module is loaded --- db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.php b/db.php index 050c3f9..e9f45e7 100644 --- a/db.php +++ b/db.php @@ -222,7 +222,7 @@ class DB_Abstract $this->error('Invalid SQL query'); } - $this->history[] = $history = array('query' => $string, 'time' => $this->registry->modules['functions']->fetch_microtime_diff($time), 'trace' => $this->registry->format_debug_trace(debug_backtrace())); + $this->history[] = $history = array('query' => $string, 'time' => ($this->registry->is_loaded('functions') ? $this->registry->modules['functions']->fetch_microtime_diff($time) : 0), 'trace' => $this->registry->format_debug_trace(debug_backtrace())); if (defined('ISSO_SHOW_QUERIES_LIVE')) { -- 2.22.5