[BUGFIX] Initialize site configuration for new sites
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / SiteConfigurationController.php
index a2939cf..7c51df0 100644 (file)
@@ -230,6 +230,7 @@ class SiteConfigurationController
             $currentSiteConfiguration = $currentSite->getConfiguration();
             $currentIdentifier = $currentSite->getIdentifier();
         } catch (SiteNotFoundException $e) {
+            $currentSiteConfiguration = [];
             $isNewConfiguration = true;
             $pageId = (int)$parsedBody['rootPageId'];
             if (!$pageId > 0) {