From 9fe73b20b3375a9a1d427dc39f19cd68ca2ac753 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 8 Dec 2016 16:22:54 +0100 Subject: [PATCH] fix PHP 5.4 Fatal error: Can't use function return value in write context --- api/src/Mail/Account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Mail/Account.php b/api/src/Mail/Account.php index a67a72e2d7..ba9107bd5b 100644 --- a/api/src/Mail/Account.php +++ b/api/src/Mail/Account.php @@ -1592,11 +1592,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'].'>'; }