"common::email_address() dont add @domain, if not domain (mail_suffix) specified"

This commit is contained in:
Ralf Becker 2008-09-11 07:48:49 +00:00
parent eab06a2ac0
commit 3b5d46022d

View File

@ -1316,7 +1316,7 @@
$email = str_replace(array('first','last','initial','account','dot','underscore','-'),
array($first,$last,substr($first,0,1),$account,$dot,$underscore,''),
$GLOBALS['egw_info']['server']['email_address_format'] ? $GLOBALS['egw_info']['server']['email_address_format'] : 'first-dot-last').
'@'.$domain;
($domain ? '@'.$domain : '');
//echo " = '$email'</p>\n";
return $email;
}