forked from extern/egroupware
fix identities from aliases or imap-user without @ shown with empty label, if name is empty
This commit is contained in:
parent
b38542439a
commit
6a31d2462a
@ -1598,7 +1598,6 @@ class Account implements \ArrayAccess
|
|||||||
catch(\Exception $e) {
|
catch(\Exception $e) {
|
||||||
_egw_log_exception($e);
|
_egw_log_exception($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (strlen(trim($account['ident_realname'].$account['ident_org'])))
|
if (strlen(trim($account['ident_realname'].$account['ident_org'])))
|
||||||
{
|
{
|
||||||
@ -1608,11 +1607,11 @@ class Account implements \ArrayAccess
|
|||||||
{
|
{
|
||||||
$name = $account['acc_name'];
|
$name = $account['acc_name'];
|
||||||
}
|
}
|
||||||
if (strpos($account['ident_email'], '@') !== false)
|
if (!empty(trim($account['ident_email'])))
|
||||||
{
|
{
|
||||||
$name .= ' <'.$account['ident_email'].'>';
|
$name .= ' <'.$account['ident_email'].'>';
|
||||||
}
|
}
|
||||||
elseif(strpos($account['acc_imap_username'], '@') !== false)
|
elseif(!empty(trim($account['acc_imap_username'])))
|
||||||
{
|
{
|
||||||
$name .= ' <'.$account['acc_imap_username'].'>';
|
$name .= ' <'.$account['acc_imap_username'].'>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user