From 99bc6becb6c1d7dd4d3e7f120cefcb7e5d17193e Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 19 Aug 2021 13:51:07 +0200 Subject: [PATCH] do not check for sender in toList() because it is done in toIndividual() --- inc/inc.ClassEmailNotify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/inc.ClassEmailNotify.php b/inc/inc.ClassEmailNotify.php index b5b1905de..ec0753aad 100644 --- a/inc/inc.ClassEmailNotify.php +++ b/inc/inc.ClassEmailNotify.php @@ -113,7 +113,6 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify { $from = $this->from_address; } - $body = ''; if(!isset($params['__skip_header__']) || !$params['__skip_header__']) { if(!isset($params['__header__'])) @@ -256,10 +255,12 @@ class SeedDMS_EmailNotify extends SeedDMS_Notify { * The dispatching is now done in SeedDMS_NotificationService::toList() */ function toList($sender, $recipients, $subject, $message, $params=array()) { /* {{{ */ + /* if ((!is_object($sender) && strcasecmp(get_class($sender), $this->_dms->getClassname('user'))) || (!is_array($recipients) && count($recipients)==0)) { return false; } + */ $ret = true; foreach ($recipients as $recipient) {