diff --git a/Classes/XClass/Controller/LoginController.php b/Classes/XClass/Controller/LoginController.php index 50d89592..e3b9c8b3 100644 --- a/Classes/XClass/Controller/LoginController.php +++ b/Classes/XClass/Controller/LoginController.php @@ -122,7 +122,6 @@ private function isHeadlessEnabled(): bool { $typoScriptSetup = $GLOBALS['TSFE'] instanceof TypoScriptFrontendController ? $GLOBALS['TSFE']->tmpl->setup : []; - return isset($typoScriptSetup['plugin.']['tx_headless.']['staticTemplate']) - || (bool)$typoScriptSetup['plugin.']['tx_headless.']['staticTemplate'] === true; + return (bool)($typoScriptSetup['plugin.']['tx_headless.']['staticTemplate'] ?? false); } }