From: Alan Date: Fri, 12 Jan 2024 05:30:46 +0000 (+0800) Subject: PHP8 X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e4cd531ecb74e5dbb6cc53ee92355aec4a813120 PHP8 --- diff --git a/DataObjects/Core_email.php b/DataObjects/Core_email.php index 1b087733..02ce3427 100644 --- a/DataObjects/Core_email.php +++ b/DataObjects/Core_email.php @@ -294,7 +294,7 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject $html->item(0)->appendChild($element); } - $this->plaintext = str_replace("{unsubscribe_link}", $unsubscribe, $this->plaintext); + $this->plaintext = str_replace("{unsubscribe_link}", $unsubscribe, empty($this->plaintext) ? '' : $this->plaintext); }