[BUGFIX] Fix fatal in web->list for page without access 92/44192/2
authorStephan Großberndt <stephan@grossberndt.de>
Tue, 20 Oct 2015 22:48:26 +0000 (00:48 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 21 Oct 2015 21:54:16 +0000 (23:54 +0200)
Resolves: #70888
Releases: master
Change-Id: Iba46d4c0c86869abc819f71f837054e03c0d22f6
Reviewed-on: https://review.typo3.org/44192
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/recordlist/Classes/RecordList.php

index 5a19a8d..9d83af6 100644 (file)
@@ -571,7 +571,10 @@ class RecordList extends AbstractModule
             ->setIcon($this->iconFactory->getIcon('actions-search', Icon::SIZE_SMALL));
         $this->moduleTemplate->getDocHeaderComponent()->getButtonBar()->addButton($searchButton, ButtonBar::BUTTON_POSITION_LEFT, 90);
 
-        $this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($this->pageinfo);
+        if ($this->pageinfo) {
+            $this->moduleTemplate->getDocHeaderComponent()->setMetaInformation($this->pageinfo);
+        }
+
         // Build the <body> for the module
         $this->content .= $this->body;
     }