1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-07 06:55:25 +02:00

[ticket/16940] Optimize phpBB Native Search

- Fixed infinite loop

PHPBB3-16940
This commit is contained in:
Dark❶ 2021-12-13 00:37:04 +05:30
parent ddc3eaa5bf
commit cccf01447f
No known key found for this signature in database
GPG Key ID: B5C35684F456E634

View File

@ -345,7 +345,7 @@ class acp_search
// save the current state
$this->save_state();
if ($post_counter <= $this->max_post_id)
if ($post_counter < $this->max_post_id)
{
$totaltime = microtime(true) - $starttime;
$rows_per_second = $row_count / $totaltime;
@ -431,7 +431,7 @@ class acp_search
$this->search->tidy();
$config['num_posts'] = $num_posts;
if ($post_counter <= $this->max_post_id)
if ($post_counter < $this->max_post_id)
{
$totaltime = microtime(true) - $starttime;
$rows_per_second = $row_count / $totaltime;