diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-10-15 18:40:43 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-10-15 18:40:43 +0200 |
commit | 3521dfc2787a532365dba12eec669579d15d79f2 (patch) | |
tree | 9e606800cdde4e3051ed8eae0685afdc4b8c1929 /phpBB/phpbb/db/driver/mssql.php | |
parent | 40932c26eaa7cddd0731b136a77c9bad704b69e0 (diff) | |
parent | a35721f68c95153f46dd67ea465addedf82f538e (diff) | |
download | forums-3521dfc2787a532365dba12eec669579d15d79f2.tar forums-3521dfc2787a532365dba12eec669579d15d79f2.tar.gz forums-3521dfc2787a532365dba12eec669579d15d79f2.tar.bz2 forums-3521dfc2787a532365dba12eec669579d15d79f2.tar.xz forums-3521dfc2787a532365dba12eec669579d15d79f2.zip |
Merge remote-tracking branch 'p/prep-release-3.1.0-a1' into develop
* p/prep-release-3.1.0-a1:
[prep-release-3.1.0-a1] Update changelog with the latest changes
[ticket/11919] Remove extra argument to notification manager's sql_fetchfield()
[ticket/11918] Make sql_freeresult() consistent across all DB drivers
[prep-release-3.1.0-a1] Only build packages for the latest olympus versions
[prep-release-3.1.0-a1] Update changelog with 3.1.0-a1 changes
[prep-release-3.1.0-a1] Update version to 3.1.0-a1
Diffstat (limited to 'phpBB/phpbb/db/driver/mssql.php')
-rw-r--r-- | phpBB/phpbb/db/driver/mssql.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/db/driver/mssql.php b/phpBB/phpbb/db/driver/mssql.php index 4d2cd287da..50096deded 100644 --- a/phpBB/phpbb/db/driver/mssql.php +++ b/phpBB/phpbb/db/driver/mssql.php @@ -318,14 +318,14 @@ class mssql extends \phpbb\db\driver\driver $query_id = $this->query_result; } - if ($cache && $cache->sql_exists($query_id)) + if ($cache && !is_object($query_id) && $cache->sql_exists($query_id)) { return $cache->sql_freeresult($query_id); } - if (isset($this->open_queries[$query_id])) + if (isset($this->open_queries[(int) $query_id])) { - unset($this->open_queries[$query_id]); + unset($this->open_queries[(int) $query_id]); return @mssql_free_result($query_id); } |