[BUGFIX] Fix fatal in web->functions for page without access 87/44887/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sat, 21 Nov 2015 21:16:53 +0000 (22:16 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 22 Nov 2015 09:48:00 +0000 (10:48 +0100)
Resolves: #71767
Releases: master
Change-Id: I0c894ac2edcc3e4c9f24de9dd0f522a310d63526
Reviewed-on: https://review.typo3.org/44887
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/func/Classes/Controller/PageFunctionsController.php

index bdde464..3a4035f 100644 (file)
@@ -111,7 +111,9 @@ class PageFunctionsController extends \TYPO3\CMS\Backend\Module\BaseScriptClass
         // Access check...
         // 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);
         // We keep this here, in case somebody relies on the old doc being here
         $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);