Skip to content

Commit

Permalink
[BUGFIX] Fix exception when trying to export zero mail records to xls (
Browse files Browse the repository at this point in the history
  • Loading branch information
kitzberger authored Jun 7, 2024
1 parent e929887 commit 2e86e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function exportXlsAction(): ResponseInterface
'mails' => $this->mailRepository->findAllInPid($this->id, $this->settings, $this->piVars),
'fieldUids' => GeneralUtility::trimExplode(
',',
StringUtility::conditionalVariable($this->piVars['export']['fields'], ''),
StringUtility::conditionalVariable($this->piVars['export']['fields'] ?? '', ''),
true
),
]
Expand Down

0 comments on commit 2e86e43

Please sign in to comment.