Bugfix: Call to a member function append() on null

This commit is contained in:
the-djmaze 2022-09-30 14:10:02 +02:00
parent 97cae30a51
commit f05bb205e5

View file

@ -1018,7 +1018,7 @@ trait Messages
\MailSo\Base\ResourceRegistry::CreateMemoryResourceFromString(\preg_replace('/\\r?\\n/su', "\r\n", \trim($sText))),
'convert.quoted-printable-encode'
);
$this->SubParts->append($oPart);
$oMessage->SubParts->append($oPart);
$this->Plugins()->RunHook('filter.build-read-receipt-message', array($oMessage, $oAccount));