mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/9813] Only get posts table row count if we detected a fulltext index.
PHPBB3-9813
This commit is contained in:
parent
785c75254e
commit
01d90e59a8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue