aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/mysql.php')
-rw-r--r--phpBB/db/mysql.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php
index ded3ae27c6..f61f7cb755 100644
--- a/phpBB/db/mysql.php
+++ b/phpBB/db/mysql.php
@@ -305,10 +305,15 @@ class sql_db
{
$query_id = $this->query_result;
}
- if($query_id)
+
+ if ( $query_id )
{
- $result = @mysql_free_result($query_id);
- return $result;
+ unset($this->row[$query_id]);
+ unset($this->rowset[$query_id]);
+
+ @mysql_free_result($query_id);
+
+ return true;
}
else
{