diff options
author | Nils Adermann <naderman@naderman.de> | 2006-08-02 09:13:39 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-08-02 09:13:39 +0000 |
commit | 63322c5a0e0eba70b4ade92f64052014fd83c78d (patch) | |
tree | 19554bae4aa90b00ee8523c6e104f93da6c66353 /phpBB | |
parent | 09081e410fc015c71dbd460aeafade42d7070b78 (diff) | |
download | forums-63322c5a0e0eba70b4ade92f64052014fd83c78d.tar forums-63322c5a0e0eba70b4ade92f64052014fd83c78d.tar.gz forums-63322c5a0e0eba70b4ade92f64052014fd83c78d.tar.bz2 forums-63322c5a0e0eba70b4ade92f64052014fd83c78d.tar.xz forums-63322c5a0e0eba70b4ade92f64052014fd83c78d.zip |
mysqli results are objects, not resources
git-svn-id: file:///svn/phpbb/trunk@6226 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/db/mysqli.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/db/mysqli.php b/phpBB/includes/db/mysqli.php index f6a00fde3b..fa4d3ffdc7 100644 --- a/phpBB/includes/db/mysqli.php +++ b/phpBB/includes/db/mysqli.php @@ -186,7 +186,7 @@ class dbal_mysqli extends dbal $query_id = $this->query_result; } - if (isset($cache->sql_rowset[$query_id])) + if (!is_object($query_id) && isset($cache->sql_rowset[$query_id])) { return $cache->sql_numrows($query_id); } @@ -242,7 +242,7 @@ class dbal_mysqli extends dbal $this->sql_rowseek($rownum, $query_id); } - if (isset($cache->sql_rowset[$query_id])) + if (!is_object($query_id) && isset($cache->sql_rowset[$query_id])) { return $cache->sql_fetchfield($query_id, $field); } @@ -267,7 +267,7 @@ class dbal_mysqli extends dbal $query_id = $this->query_result; } - if (isset($cache->sql_rowset[$query_id])) + if (!is_object($query_id) && isset($cache->sql_rowset[$query_id])) { return $cache->sql_rowseek($query_id, $rownum); } @@ -295,7 +295,7 @@ class dbal_mysqli extends dbal $query_id = $this->query_result; } - if (isset($cache->sql_rowset[$query_id])) + if (!is_object($query_id) && isset($cache->sql_rowset[$query_id])) { return $cache->sql_freeresult($query_id); } |