From 68a32de08995bcf79531f7c08cfcea11c8ec064e Mon Sep 17 00:00:00 2001 From: Sven Wappler Date: Fri, 31 May 2019 10:53:05 +0200 Subject: [PATCH] Bugfixing --- Classes/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Helper.php b/Classes/Helper.php index 016c209..df31048 100644 --- a/Classes/Helper.php +++ b/Classes/Helper.php @@ -47,7 +47,7 @@ class Helper // Get the rootpage_id from realurl config. $realurlConfig = $tsFeController->TYPO3_CONF_VARS['EXTCONF']['realurl']; - if (array_key_exists($_SERVER['SERVER_NAME'], $realurlConfig)) { + if (is_array($realurlConfig) && array_key_exists($_SERVER['SERVER_NAME'], $realurlConfig)) { $rootpage_id = $realurlConfig[$_SERVER['SERVER_NAME']]['pagePath']['rootpage_id']; } else { $rootpage_id = $realurlConfig['_DEFAULT']['pagePath']['rootpage_id'];