aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/phpbb/db/driver/mysqli.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/driver/mysqli.php b/phpBB/phpbb/db/driver/mysqli.php
index 410d84c1df..4c6963673e 100644
--- a/phpBB/phpbb/db/driver/mysqli.php
+++ b/phpBB/phpbb/db/driver/mysqli.php
@@ -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);
}