[TASK] Fix continue-statement inside a switch-block
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / ExtensionManagementUtility.php
index 8414355..2895c4c 100644 (file)
@@ -332,14 +332,14 @@ class ExtensionManagementUtility
                                     // check if fields have been added to palette before
                                     if (isset($palettesChanged[$paletteName])) {
                                         $fieldExists = true;
-                                        continue;
+                                        continue 2;
                                     }
                                     if (preg_match('/\\b' . $entityName . '\\b/', $palette['showitem']) > 0) {
                                         self::addFieldsToPalette($table, $paletteName, $newFieldsString, $position);
                                         // Memorize that we already changed this palette, in case other types also use it
                                         $palettesChanged[$paletteName] = true;
                                         $fieldExists = true;
-                                        continue;
+                                        continue 2;
                                     }
                                     break;
                                 default: