[BUGFIX] Exception with cHashIncludePageId but no id in the URL
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Controller / TypoScriptFrontendController.php
index ec563bc..f627a5e 100644 (file)
@@ -2233,6 +2233,10 @@ class TypoScriptFrontendController
         }
         $GET = GeneralUtility::_GET();
         if ($this->cHash && is_array($GET)) {
+            if (!isset($GET['id'])) {
+                // id not in $_GET -> home page -> use already determined id
+                $GET['id'] = $this->id;
+            }
             $this->cHash_array = $this->cacheHash->getRelevantParameters(GeneralUtility::implodeArrayForUrl('', $GET));
             $cHash_calc = $this->cacheHash->calculateCacheHash($this->cHash_array);
             if ($cHash_calc != $this->cHash) {