diff --git a/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php b/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php index dc931c270115817367855a187a6ed16b65d58abe..b132d7a95f5daba2d311310f38277c95577a576a 100644 --- a/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php +++ b/typo3/sysext/indexed_search/Classes/Controller/AdministrationController.php @@ -85,13 +85,15 @@ class AdministrationController extends ActionController */ protected function initializeView(ViewInterface $view) { - /** @var BackendTemplateView $view */ - parent::initializeView($view); - $permissionClause = $this->getBackendUserAuthentication()->getPagePermsClause(1); - $pageRecord = BackendUtility::readPageAccess($this->pageUid, $permissionClause); - $view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation($pageRecord); - $this->generateMenu(); - $this->view->getModuleTemplate()->setFlashMessageQueue($this->controllerContext->getFlashMessageQueue()); + if ($view instanceof BackendTemplateView) { + /** @var BackendTemplateView $view */ + parent::initializeView($view); + $permissionClause = $this->getBackendUserAuthentication()->getPagePermsClause(1); + $pageRecord = BackendUtility::readPageAccess($this->pageUid, $permissionClause); + $view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation($pageRecord); + $this->generateMenu(); + $this->view->getModuleTemplate()->setFlashMessageQueue($this->controllerContext->getFlashMessageQueue()); + } } /**