From 6362e257b13fd25ed00d60e8e83435485c5cbdf5 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 6 Aug 2013 13:48:20 +0000 Subject: [PATCH] alter message on success/failure of multiple message sending via addressbook mail-merge --- etemplate/inc/class.bo_merge.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 96dc2e6863..15112730e6 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -1438,7 +1438,7 @@ abstract class bo_merge } //error_log(__METHOD__.__LINE__.' Message after importMessageToMergeAndSend:'.array2string($msgs)); $retString = ''; - if (count($msgs['success'])>0) $retString .= count($msgs['success']).' '.(count($msgs['success'])==1?lang('Message prepared for sending.'):lang('Message(s) send ok.'));//implode('
',$msgs['success']); + if (count($msgs['success'])>0) $retString .= count($msgs['success']).' '.(count($msgs['success'])+count($msgs['failed'])==1?lang('Message prepared for sending.'):lang('Message(s) send ok.'));//implode('
',$msgs['success']); //if (strlen($retString)>0) $retString .= '
'; if (count($msgs['failed'])>0) $retString .= count($msgs['failed']).' '.lang('Message(s) send failed!').'=>'.implode(', ',$msgs['failed']); return $retString;