mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12387] Fix \phpbb\db\driver\mysqli::sql_freeresult
PHPBB3-12387
This commit is contained in:
@@ -293,11 +293,16 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||
return $cache->sql_freeresult($query_id);
|
||||
}
|
||||
|
||||
if (!$this->query_result)
|
||||
if (!$query_id)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($query_id === true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return mysqli_free_result($query_id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user