From 81ab6d83b8f67147d5f4b76df5cea47d5a79c936 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 8 Nov 2005 19:41:12 +0000 Subject: re-remove (:D) open queries array due to the result being an object. git-svn-id: file:///svn/phpbb/trunk@5297 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/mysqli.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'phpBB/includes/db/mysqli.php') diff --git a/phpBB/includes/db/mysqli.php b/phpBB/includes/db/mysqli.php index 0b10d01679..05846c717e 100644 --- a/phpBB/includes/db/mysqli.php +++ b/phpBB/includes/db/mysqli.php @@ -24,8 +24,6 @@ if (!defined('SQL_LAYER')) */ class dbal_mysqli extends dbal { - var $indexed = 0; - /** * Connect to server */ @@ -119,13 +117,8 @@ class dbal_mysqli extends dbal if ($cache_ttl && method_exists($cache, 'sql_save')) { - $this->open_queries[(int) $this->query_result] = $this->query_result; $cache->sql_save($query, $this->query_result, $cache_ttl); } - else if (strpos($query, 'SELECT') !== false && $this->query_result) - { - $this->open_queries[(int) $this->query_result] = $this->query_result; - } } else if (defined('DEBUG_EXTRA')) { @@ -264,9 +257,9 @@ class dbal_mysqli extends dbal $query_id = $this->query_result; } - if (isset($this->open_queries[(int) $query_id])) + // Make sure it is not a cached query + if (is_object($this->query_result)) { - unset($this->open_queries[(int) $query_id]); return @mysqli_free_result($query_id); } -- cgit v1.2.1