mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
fix problem with missing first and lastname on emailadminprofile (select box of profiles)
This commit is contained in:
parent
96d5e48885
commit
bc2e5836e2
@ -64,7 +64,7 @@
|
||||
if(empty($emailAddress))
|
||||
$emailAddress = $_accountName.'@'.$this->defaultDomain;
|
||||
|
||||
$realName = trim($GLOBALS['egw_info']['user']['firstname'] . (!empty($GLOBALS['egw_info']['user']['firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['lastname']);
|
||||
$realName = trim($GLOBALS['egw_info']['user']['account_firstname'] . (!empty($GLOBALS['egw_info']['user']['account_firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['account_lastname']);
|
||||
|
||||
return array(
|
||||
array(
|
||||
|
@ -178,7 +178,7 @@ class emailadmin_smtp_ldap extends defaultsmtp
|
||||
|
||||
if ($sri)
|
||||
{
|
||||
$realName = trim($GLOBALS['egw_info']['user']['firstname'] . (!empty($GLOBALS['egw_info']['user']['firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['lastname']);
|
||||
$realName = trim($GLOBALS['egw_info']['user']['account_firstname'] . (!empty($GLOBALS['egw_info']['user']['account_firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['account_lastname']);
|
||||
$allValues = ldap_get_entries($ds, $sri);
|
||||
|
||||
if(isset($allValues[0]['mail']))
|
||||
|
Loading…
Reference in New Issue
Block a user