From e4cd531ecb74e5dbb6cc53ee92355aec4a813120 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 12 Jan 2024 13:30:46 +0800 Subject: [PATCH] PHP8 --- DataObjects/Core_email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2