Do not let empty string as email alias in vacation dialog

This commit is contained in:
Hadi Nategh 2016-08-15 11:44:13 +02:00
parent 6c98f02bc7
commit 5c42f4254e

View File

@ -446,7 +446,7 @@ class mail_sieve
if (is_null($accountID)) $accountID = $GLOBALS['egw_info']['user']['account_id'];
$accAllIdentities = $this->account->smtpServer()->getAccountEmailAddress(Api\Accounts::id2name($accountID));
$allAliases = array($this->account->ident_email);
$allAliases = $this->account->ident_email !=''? array($this->account->ident_email): array();
foreach ($accAllIdentities as &$arrVal)
{
if ($arrVal['type'] !='default')