Skip to content

Commit 3667b8c

Browse files
Achim Fritzochorocho
authored andcommitted
[BUGFIX] prevent exception on filelist module
1 parent 1863e76 commit 3667b8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Classes/Backend/EventListener/ModifyButtonBarEventListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public function __invoke(ModifyButtonBarEvent $event): void
3636
$request = $this->getRequest();
3737
$pageId = $request->getQueryParams()['id'] ?? 0;
3838
$page = $this->pageRepository->getPage($pageId);
39+
if (empty($page)) {
40+
return;
41+
}
3942

4043
if ((int)($page['doktype'] ?? 0) === (int)(EmailTemplateService::getTypoScript()['doktype'] ?? 0)) {
4144
$plaintextTypeNum = (int)(EmailTemplateService::getTypoScript()['typeNum'] ?? 0);

0 commit comments

Comments
 (0)