diff --git a/Classes/Controller/BrokenLinkListController.php b/Classes/Controller/BrokenLinkListController.php index 992a57d04..6b997d002 100644 --- a/Classes/Controller/BrokenLinkListController.php +++ b/Classes/Controller/BrokenLinkListController.php @@ -135,11 +135,6 @@ class BrokenLinkListController extends AbstractBrofixController protected string $viewMode = self::DEFAULT_VIEW_MODE_VALUE; - /** - * @var array - */ - protected array $pageinfo = []; - /** * @var string */ @@ -349,13 +344,15 @@ protected function initialize(ServerRequestInterface $request): void if ($this->id !== 0) { $this->resolveSiteLanguages($this->id); - $this->pageinfo = BackendUtility::readPageAccess($this->id, $backendUser->getPagePermsClause(Permission::PAGE_SHOW)); + //$this->pageinfo = BackendUtility::readPageAccess($this->id, $backendUser->getPagePermsClause(Permission::PAGE_SHOW)); $this->configuration->loadPageTsConfig($this->id); $this->pageRecord = BackendUtility::readPageAccess( $this->id, $this->getBackendUser()->getPagePermsClause(Permission::PAGE_SHOW) - ); + ) ?: []; + } else { + $this->pageRecord = []; } $this->getLanguageService()->includeLLFile('EXT:brofix/Resources/Private/Language/Module/locallang.xlf'); $this->getSettingsFromQueryParameters($request); @@ -578,7 +575,7 @@ protected function initializeViewForBrokenLinks(): void } else { // todo: do we need to check rootline for hidden? Was already checked in checking for broken links! // @extensionScannerIgnoreLine problem with getRootLineIsHidden - $rootLineHidden = $this->pagesRepository->getRootLineIsHidden($this->pageinfo); + $rootLineHidden = $this->pagesRepository->getRootLineIsHidden($this->pageRecord); if ($rootLineHidden && !$this->configuration->isCheckHidden()) { $shouldShow = false; }