alter message on success/failure of multiple message sending via addressbook mail-merge

This commit is contained in:
Klaus Leithoff 2013-08-06 13:48:20 +00:00
parent ff536e6f1c
commit 6362e257b1

View File

@ -1438,7 +1438,7 @@ abstract class bo_merge
} }
//error_log(__METHOD__.__LINE__.' Message after importMessageToMergeAndSend:'.array2string($msgs)); //error_log(__METHOD__.__LINE__.' Message after importMessageToMergeAndSend:'.array2string($msgs));
$retString = ''; $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('<br />',$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('<br />',$msgs['success']);
//if (strlen($retString)>0) $retString .= '<br />'; //if (strlen($retString)>0) $retString .= '<br />';
if (count($msgs['failed'])>0) $retString .= count($msgs['failed']).' '.lang('Message(s) send failed!').'=>'.implode(', ',$msgs['failed']); if (count($msgs['failed'])>0) $retString .= count($msgs['failed']).' '.lang('Message(s) send failed!').'=>'.implode(', ',$msgs['failed']);
return $retString; return $retString;