mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
[ticket/11918] Make sql_freeresult() consistent across all DB drivers
PHPBB3-11918
This commit is contained in:
@@ -289,7 +289,7 @@ class mysql extends \phpbb\db\driver\mysql_base
|
||||
$query_id = $this->query_result;
|
||||
}
|
||||
|
||||
if ($cache && $cache->sql_exists($query_id))
|
||||
if ($cache && !is_object($query_id) && $cache->sql_exists($query_id))
|
||||
{
|
||||
return $cache->sql_freeresult($query_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user