1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 06:20:46 +02:00

[ticket/12683] Fix create index command

PHPBB3-12683
This commit is contained in:
rubencm
2021-03-24 19:13:56 +01:00
committed by Ruben Calvo
parent 0a24704b4f
commit 75bdbcf4fe
4 changed files with 9 additions and 7 deletions

View File

@@ -391,7 +391,9 @@ abstract class base implements search_backend_interface
$starttime = microtime(true);
$row_count = 0;
while (still_on_time() && $post_counter <= $max_post_id)
$still_on_time = PHP_SAPI === 'cli' ? true : still_on_time();
while ($still_on_time && $post_counter <= $max_post_id)
{
$rows = $this->get_posts_batch_after($post_counter);
$ids = $posters = $forum_ids = array();