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:
parent
785c75254e
commit
01d90e59a8
@ -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…
x
Reference in New Issue
Block a user