From fbdbfda46a12abb6abe0122337f225c09be8ed11 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 20 Sep 2010 09:42:44 +0000 Subject: [PATCH] quiten warning when missing entrys for (to/cc/bcc) --- infolog/inc/class.infolog_ui.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index b2ed3cb87c..f7aaf37c54 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1541,9 +1541,9 @@ class infolog_ui //_debug_array($preferences); //_debug_array($attachments); $body = self::createHeaderInfoSection(array('FROM'=>$_to_emailAddress['from'], - 'TO'=>implode(',',$_to_emailAddress['to']), - 'CC'=>implode(',',$_to_emailAddress['cc']), - 'BCC'=>implode(',',$_to_emailAddress['bcc']), + 'TO'=>(!empty($_to_emailAddress['to'])?implode(',',$_to_emailAddress['to']):null), + 'CC'=>(!empty($_to_emailAddress['cc'])?implode(',',$_to_emailAddress['cc']):null), + 'BCC'=>(!empty($_to_emailAddress['bcc'])?implode(',',$_to_emailAddress['bcc']):null), 'SUBJECT'=>$_subject, 'DATE'=>bofelamimail::_strtotime($_date))).strip_tags($_body); $this->edit($this->bo->import_mail(