mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-04 05:25:01 +02:00
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
This commit is contained in:
parent
a484161be2
commit
81ab6d83b8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user