Skip to content

Commit

Permalink
[BUGFIX] non-admin: page module without selected page creates exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmschuler committed Sep 4, 2022
1 parent f009a9c commit 68457df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Controller/Backend/PageLayoutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PageLayoutController extends ActionController
/**
* Record of current page with _path information BackendUtility::readPageAccess
*
* @var array
* @var array|false
*/
protected $pageInfo;

Expand Down Expand Up @@ -188,7 +188,9 @@ public function showAction()

$this->pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);

$this->view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation($this->pageInfo);
if ($this->pageInfo !== false) {
$this->view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation($this->pageInfo);
}
$this->view->getModuleTemplate()->setFlashMessageQueue($this->getFlashMessageQueue());

$contentHeader = '';
Expand Down

0 comments on commit 68457df

Please sign in to comment.