aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-05-26 18:55:28 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-05-26 18:55:28 +0000
commit00ad9cc4987665934bd7176026072d0c256fd2f3 (patch)
tree7c0b5eef39a7076a6ed7a92fa32e38fa3033c595 /phpBB/includes/db/mysql.php
parentcf8c2a7df105546402e2eb48750e76c3dd02a949 (diff)
downloadforums-00ad9cc4987665934bd7176026072d0c256fd2f3.tar
forums-00ad9cc4987665934bd7176026072d0c256fd2f3.tar.gz
forums-00ad9cc4987665934bd7176026072d0c256fd2f3.tar.bz2
forums-00ad9cc4987665934bd7176026072d0c256fd2f3.tar.xz
forums-00ad9cc4987665934bd7176026072d0c256fd2f3.zip
language additions
some small fixes git-svn-id: file:///svn/phpbb/trunk@4893 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysql.php')
-rw-r--r--phpBB/includes/db/mysql.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index abfdd576f6..ccaca5e884 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -345,6 +345,16 @@ class sql_db
$query_id = $this->query_result;
}
+ if ($query_id)
+ {
+ // If it is not found within the open queries, we try to free a cached result. ;)
+ if (!(array_search($query_id, $this->open_queries) > 0))
+ {
+ return false;
+ }
+ unset($this->open_queries[array_search($query_id, $this->open_queries)]);
+ }
+
return ($query_id) ? @mysql_free_result($query_id) : false;
}