[BUGFIX] Fix fatal in web->info for page without access 22/44422/2
authorAndreas Allacher <andreas@allacher.com>
Fri, 30 Oct 2015 18:01:27 +0000 (19:01 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 30 Oct 2015 18:16:17 +0000 (19:16 +0100)
Change-Id: I09ca9ca4d0afea91b64578acb6587ef8cb813f37
Resolves: #71185
Releases: master
Reviewed-on: https://review.typo3.org/44422
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/info/Classes/Controller/InfoModuleController.php

index e6d0a19..686603f 100644 (file)
@@ -95,7 +95,9 @@ class InfoModuleController extends BaseScriptClass
         // The page will show only if there is a valid page and if this page
         // may be viewed by the user
         $this->pageinfo = BackendUtility::readPageAccess($this->id, $this->perms_clause);
-        $this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($this->pageinfo);
+        if ($this->pageinfo) {
+            $this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($this->pageinfo);
+        }
         $access = is_array($this->pageinfo);
         if ($this->id && $access || $this->backendUser->user['admin'] && !$this->id) {
             if ($this->backendUser->user['admin'] && !$this->id) {