mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
no need to instanciate object for static methods
This commit is contained in:
parent
c8c11a00de
commit
19d4965762
@ -951,12 +951,12 @@ class Preferences
|
||||
return $this->data['email']['address'];
|
||||
}
|
||||
// if email-address is set in the account, return it
|
||||
if (($email = $GLOBALS['egw']->accounts->id2name($account_id,'account_email')))
|
||||
if (($email = Accounts::id2name($account_id,'account_email')))
|
||||
{
|
||||
return $email;
|
||||
}
|
||||
$prefs_email_address = $GLOBALS['egw']->accounts->id2name($account_id);
|
||||
if (strpos($prefs_email_address,'@') === False)
|
||||
$prefs_email_address = Accounts::id2name($account_id);
|
||||
if ($prefs_email_address && strpos($prefs_email_address,'@') === False)
|
||||
{
|
||||
$prefs_email_address .= '@' . $GLOBALS['egw_info']['server']['mail_suffix'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user