diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-03-05 00:42:36 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-03-08 14:38:59 +0100 |
commit | 01d90e59a8c311778a832ba4920e4c5a85b1256f (patch) | |
tree | 17289734b01bec21ffcc036afcfa07ccaa444b21 /phpBB/includes/search | |
parent | 785c75254e763a24cf56765ca9a7e02140982497 (diff) | |
download | forums-01d90e59a8c311778a832ba4920e4c5a85b1256f.tar forums-01d90e59a8c311778a832ba4920e4c5a85b1256f.tar.gz forums-01d90e59a8c311778a832ba4920e4c5a85b1256f.tar.bz2 forums-01d90e59a8c311778a832ba4920e4c5a85b1256f.tar.xz forums-01d90e59a8c311778a832ba4920e4c5a85b1256f.zip |
[ticket/9813] Only get posts table row count if we detected a fulltext index.
PHPBB3-9813
Diffstat (limited to 'phpBB/includes/search')
-rw-r--r-- | phpBB/includes/search/fulltext_mysql.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index 54cc894f6a..779ec1d216 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -896,7 +896,7 @@ class fulltext_mysql extends search_backend } $db->sql_freeresult($result); - $this->stats['total_posts'] = $db->get_estimated_row_count(POSTS_TABLE); + $this->stats['total_posts'] = empty($this->stats) ? 0 : $db->get_estimated_row_count(POSTS_TABLE); } /** |