mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16940] Optimize phpBB Native Search
- Removed `end()` replaced with `$ids[count($ids) - 1]` PHPBB3-16940
This commit is contained in:
@@ -399,7 +399,7 @@ abstract class base implements search_backend_interface
|
|||||||
$this->index_remove($ids, $posters, $forum_ids);
|
$this->index_remove($ids, $posters, $forum_ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
$post_counter = end($ids);
|
$post_counter = $ids[count($ids) - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($post_counter <= $max_post_id)
|
if ($post_counter <= $max_post_id)
|
||||||
|
Reference in New Issue
Block a user