diff --git a/phpgwapi/inc/class.egw_mailer.inc.php b/phpgwapi/inc/class.egw_mailer.inc.php index b14cf870e6..07fe5d75ad 100644 --- a/phpgwapi/inc/class.egw_mailer.inc.php +++ b/phpgwapi/inc/class.egw_mailer.inc.php @@ -176,9 +176,10 @@ class egw_mailer extends PHPMailer */ public function AddrAppend($type, $addr) { + if (is_null($addr)) $addr = array(); foreach($addr as $data) { - $this->addresses[$type][] = $data[0]; + if (!empty($data[0])) $this->addresses[$type][] = $data[0]; } return parent::AddrAppend($type, $addr); }