Skip to content

Commit

Permalink
[BUGFIX] prevent exception on filelist module
Browse files Browse the repository at this point in the history
  • Loading branch information
Achim Fritz authored and ochorocho committed Nov 15, 2023
1 parent 1863e76 commit 3667b8c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public function __invoke(ModifyButtonBarEvent $event): void
$request = $this->getRequest();
$pageId = $request->getQueryParams()['id'] ?? 0;
$page = $this->pageRepository->getPage($pageId);
if (empty($page)) {
return;
}

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

0 comments on commit 3667b8c

Please sign in to comment.