mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-30 15:18:51 +00:00
[ticket/12387] Fix \phpbb\db\driver\mysqli::sql_freeresult
PHPBB3-12387
This commit is contained in:
parent
d039f56af0
commit
bc3659a186
1 changed files with 6 additions and 1 deletions
|
@ -293,11 +293,16 @@ class mysqli extends \phpbb\db\driver\mysql_base
|
||||||
return $cache->sql_freeresult($query_id);
|
return $cache->sql_freeresult($query_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->query_result)
|
if (!$query_id)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($query_id === true)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return mysqli_free_result($query_id);
|
return mysqli_free_result($query_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue