diff options
author | Nils Adermann <naderman@naderman.de> | 2006-10-03 20:38:03 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-10-03 20:38:03 +0000 |
commit | f7f6e9bcde7a1508109146f462d4627a484eb594 (patch) | |
tree | 979f06adc81c873b582d66551bd452595a07fdd8 /phpBB/includes/db/mysqli.php | |
parent | aca3b8c5cfc45538d09d496a954f39efa8c19eba (diff) | |
download | forums-f7f6e9bcde7a1508109146f462d4627a484eb594.tar forums-f7f6e9bcde7a1508109146f462d4627a484eb594.tar.gz forums-f7f6e9bcde7a1508109146f462d4627a484eb594.tar.bz2 forums-f7f6e9bcde7a1508109146f462d4627a484eb594.tar.xz forums-f7f6e9bcde7a1508109146f462d4627a484eb594.zip |
- query id can be zero [Bug #4584]
git-svn-id: file:///svn/phpbb/trunk@6438 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysqli.php')
-rw-r--r-- | phpBB/includes/db/mysqli.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/db/mysqli.php b/phpBB/includes/db/mysqli.php index 550dca5d88..35306206f1 100644 --- a/phpBB/includes/db/mysqli.php +++ b/phpBB/includes/db/mysqli.php @@ -118,7 +118,7 @@ class dbal_mysqli extends dbal $this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false; $this->sql_add_num_queries($this->query_result); - if (!$this->query_result) + if ($this->query_result === false) { if (($this->query_result = @mysqli_query($this->db_connect_id, $query)) === false) { |