mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:41 +01:00
* Mail: Fix accounts selectbox in compose dialog does not include email addresses. Additionally, let local accounts without '@' get explicitly displayed in accounts selectbox.
This commit is contained in:
parent
3905891e7b
commit
3b9f6d6cfa
@ -1592,11 +1592,11 @@ class Account implements \ArrayAccess
|
||||
{
|
||||
$name = $account['acc_name'];
|
||||
}
|
||||
if (!trim($account['ident_email']))
|
||||
if (strpos($account['ident_email'], '@') !== false || trim($account['ident_email']) !='')
|
||||
{
|
||||
$name .= ' <'.$account['ident_email'].'>';
|
||||
}
|
||||
elseif(!trim($account['acc_imap_username']))
|
||||
elseif(strpos($account['acc_imap_username'], '@') !== false || trim($account['acc_imap_username']) !='')
|
||||
{
|
||||
$name .= ' <'.$account['acc_imap_username'].'>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user