* fixed not working async service test-job

$$adr[0] === $($adr[0]) !== ($$adr)[0]
This commit is contained in:
Ralf Becker 2011-03-21 13:13:41 +00:00
parent 6a418aec6b
commit 3c8abc1971

View File

@ -158,7 +158,7 @@ class send extends egw_mailer
}
else
{
$addresses = (is_string($$adr) ? explode(',',trim($$adr)) : explode(',',trim($$adr[0])));
$addresses = is_string($$adr) ? explode(',',trim($$adr)) : explode(',',trim(array_shift($$adr)));
$names = array();
}
$method = 'Add'.($adr == 'to' ? 'Address' : $adr);