diff --git a/typo3/sysext/core/Classes/Command/SiteListCommand.php b/typo3/sysext/core/Classes/Command/SiteListCommand.php index 6b2205be9bbf1cb198a92cb1a3b8b420dbe1ab97..c0a51d4156e0f280429bb7c4efc1152c87277908 100644 --- a/typo3/sysext/core/Classes/Command/SiteListCommand.php +++ b/typo3/sysext/core/Classes/Command/SiteListCommand.php @@ -43,8 +43,6 @@ class SiteListCommand extends Command */ protected function execute(InputInterface $input, OutputInterface $output) { - $locales = []; - $status = []; $io = new SymfonyStyle($input, $output); $siteFinder = new SiteFinder(); $sites = $siteFinder->getAllSites(); @@ -68,6 +66,8 @@ class SiteListCommand extends Command foreach ($sites as $site) { $baseUrls = []; $languages = []; + $locales = []; + $status = []; foreach ($site->getLanguages() as $language) { $baseUrls[] = (string)$language->getBase(); $languages[] = sprintf(