[ticket/16940] Optimize phpBB Native Search

PHPBB3-16940
This commit is contained in:
Dark❶ 2021-12-14 16:26:39 +05:30
parent c7856ce162
commit fad1c652c0
No known key found for this signature in database
GPG key ID: B5C35684F456E634

View file

@ -339,9 +339,8 @@ class acp_search
if (count($ids)) if (count($ids))
{ {
$this->search->index_remove($ids, $posters, $forum_ids); $this->search->index_remove($ids, $posters, $forum_ids);
$post_counter = $ids[count($ids) - 1];
} }
$post_counter = $ids[count($ids) - 1];
} }
// save the current state // save the current state
$this->save_state(); $this->save_state();