Skip to content

Commit

Permalink
[TASK] prevent php warnings for not set index
Browse files Browse the repository at this point in the history
  • Loading branch information
Starkmann committed Mar 28, 2024
1 parent 6fdf9c4 commit d1336d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/EventListener/CreateActionBeforeRenderView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -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']) {
Expand Down

0 comments on commit d1336d1

Please sign in to comment.