diff --git a/api/src/Mail/Account.php b/api/src/Mail/Account.php index 1a8ee94d87..3b151a7da3 100644 --- a/api/src/Mail/Account.php +++ b/api/src/Mail/Account.php @@ -1607,11 +1607,11 @@ class Account implements \ArrayAccess { $name = $account['acc_name']; } - if (!empty(trim($account['ident_email']))) + if (!trim($account['ident_email'])) { $name .= ' <'.$account['ident_email'].'>'; } - elseif(!empty(trim($account['acc_imap_username']))) + elseif(!trim($account['acc_imap_username'])) { $name .= ' <'.$account['acc_imap_username'].'>'; }