Revert "[TASK] Avoid slow array functions in loops"
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Wizard / SuggestWizardDefaultReceiver.php
index 1ced64c..eadcbf7 100644 (file)
@@ -322,9 +322,9 @@ class SuggestWizardDefaultReceiver
             }
 
             $pageIds = array_keys($rows);
-            $pages[] = $pageIds;
+            $pages = array_merge($pages, $pageIds);
         }
-        return array_merge(...$pages);
+        return $pages;
     }
 
     /**