diff --git a/Classes/EventListener/CreateActionBeforeRenderView.php b/Classes/EventListener/CreateActionBeforeRenderView.php index a02a810..42be02a 100644 --- a/Classes/EventListener/CreateActionBeforeRenderView.php +++ b/Classes/EventListener/CreateActionBeforeRenderView.php @@ -48,7 +48,7 @@ protected function generatePdf(Mail $mail) { $settings = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_powermailpdf.']['settings.']; - $this->encoding = $settings['encoding']; + $this->encoding = $settings['encoding']??''; /** @var Folder $folder */ $folder = $this->resourceFactory->getFolderObjectFromCombinedIdentifier($settings['target.']['pdf']); @@ -129,7 +129,7 @@ protected function generatePdf(Mail $mail) $pdf->Merge(); $pdf->Output("F", GeneralUtility::getFileAbsFileName($pdfTempFile)); - if ($settings['flatten'] && $settings['flattenTool']) { + if (isset($settings['flatten']) && isset($settings['flattenTool'])) { $pdfFlatTempFile = GeneralUtility::tempnam($pdfFilename, '.pdf'); $tempFile = GeneralUtility::tempnam($pdfFilename, '.pdf'); switch ($settings['flattenTool']) {