diff --git a/Classes/Backend/EventListener/FlexFormParsingModifyEventListener.php b/Classes/Backend/EventListener/FlexFormParsingModifyEventListener.php index 4f3dd5f..30722c9 100644 --- a/Classes/Backend/EventListener/FlexFormParsingModifyEventListener.php +++ b/Classes/Backend/EventListener/FlexFormParsingModifyEventListener.php @@ -23,6 +23,10 @@ public function modifyDataStructure(AfterFlexFormDataStructureParsedEvent $event $options = $this->emailTemplateService->getOptions(); $dataStructure = $event->getDataStructure(); + if ($options === []) { + return; + } + // Search for finishers and add items foreach ($dataStructure['sheets'] as $sheetIdentifier => $sheet) { foreach ($addToFinishers as $finisherIdentifier) {