1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 20:50:30 +01:00

[ticket/9813] Only get posts table row count if we detected a fulltext index.

PHPBB3-9813
This commit is contained in:
Andreas Fischer 2012-03-05 00:42:36 +01:00
parent 785c75254e
commit 01d90e59a8

View File

@ -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);
}
/**