mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
handle php warning, when trying to call AddrAppend with empty object/array
This commit is contained in:
parent
65ced130f4
commit
c8aaaa68cf
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user