1
0
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:
Tristan Darricau
2014-06-22 23:13:10 +02:00
parent d039f56af0
commit bc3659a186

View File

@@ -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);
}