Bugfixing

This commit is contained in:
Sven Wappler 2019-05-31 10:53:05 +02:00
parent 3d15ac54e3
commit 68a32de089

View file

@ -47,7 +47,7 @@ class Helper
// Get the rootpage_id from realurl config. // Get the rootpage_id from realurl config.
$realurlConfig = $tsFeController->TYPO3_CONF_VARS['EXTCONF']['realurl']; $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']; $rootpage_id = $realurlConfig[$_SERVER['SERVER_NAME']]['pagePath']['rootpage_id'];
} else { } else {
$rootpage_id = $realurlConfig['_DEFAULT']['pagePath']['rootpage_id']; $rootpage_id = $realurlConfig['_DEFAULT']['pagePath']['rootpage_id'];