aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/mysql4.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/mysql4.php')
-rw-r--r--phpBB/db/mysql4.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/db/mysql4.php b/phpBB/db/mysql4.php
index b40497b40e..a712265ff0 100644
--- a/phpBB/db/mysql4.php
+++ b/phpBB/db/mysql4.php
@@ -297,7 +297,19 @@ class sql_db
$query_id = $this->query_result;
}
- return ( $query_id ) ? mysql_free_result($query_id) : false;
+ if ( $query_id )
+ {
+ unset($this->row[$query_id]);
+ unset($this->rowset[$query_id]);
+
+ mysql_free_result($query_id);
+
+ return true;
+ }
+ else
+ {
+ return false;
+ }
}
function sql_error()