mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-22 18:08:54 +00:00
[ticket/16940] Optimize phpBB Native Search
- Fixed infinite loop PHPBB3-16940
This commit is contained in:
parent
ddc3eaa5bf
commit
cccf01447f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue