fix PHP 5.4 Fatal error: Can't use function return value in write context

This commit is contained in:
Ralf Becker 2016-12-08 16:22:54 +01:00
parent b34023d194
commit d4a64babbd
1 changed files with 2 additions and 2 deletions

View File

@ -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'].'>';
}