diff options
Diffstat (limited to 'phpBB/includes/db/sqlite.php')
-rw-r--r-- | phpBB/includes/db/sqlite.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/db/sqlite.php b/phpBB/includes/db/sqlite.php index f2f3ceb1f1..85c6986c79 100644 --- a/phpBB/includes/db/sqlite.php +++ b/phpBB/includes/db/sqlite.php @@ -102,11 +102,10 @@ class dbal_sqlite 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) { - $this->num_queries++; - if (($this->query_result = @sqlite_query($query, $this->db_connect_id)) === false) { $this->sql_error($query); |