From 91c83fd566aa351920a26fc3d0545ccb7e39b939 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 9 Jan 2023 20:10:59 +0100 Subject: [PATCH] [ticket/16913] Move progress bar code to after search state init PHPBB3-16913 --- phpBB/includes/acp/acp_search.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/phpBB/includes/acp/acp_search.php b/phpBB/includes/acp/acp_search.php index 3e3aac0fde..7eb9cf9638 100644 --- a/phpBB/includes/acp/acp_search.php +++ b/phpBB/includes/acp/acp_search.php @@ -371,13 +371,6 @@ class acp_search */ private function index_action(string $id, string $mode, string $action): void { - // Start displaying progress on first submit - if ($this->request->is_set_post('submit')) - { - $this->display_progress_bar($id, $mode); - return; - } - // For some this may be of help... @ini_set('memory_limit', '128M'); @@ -399,6 +392,13 @@ class acp_search } } + // Start displaying progress on first submit + if ($this->request->is_set_post('submit')) + { + $this->display_progress_bar($id, $mode); + return; + } + // Execute create/delete $type = $this->search_state_helper->type(); $action = $this->search_state_helper->action();