1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 06:38:43 +01:00

[ticket/16940] Optimize phpBB Native Search

- Removed `end()` replaced with `$ids[count($ids) - 1]`

PHPBB3-16940
This commit is contained in:
Dark❶ 2021-12-12 20:44:37 +05:30
parent 65fa73855c
commit ddc3eaa5bf
No known key found for this signature in database
GPG Key ID: B5C35684F456E634

View File

@ -340,7 +340,7 @@ class acp_search
$this->search->index_remove($ids, $posters, $forum_ids);
}
$post_counter = end($ids);
$post_counter = $ids[count($ids) - 1];
}
// save the current state
$this->save_state();