bug fix for [ 1043166 ] Does not use return email address

solved by Gareth Horth
This commit is contained in:
Lars Kneschke 2004-10-24 10:51:19 +00:00
parent a92c084471
commit e2394006a8

View File

@ -36,7 +36,7 @@
function getAccountEmailAddress($_accountName)
{
$accountID = $GLOBALS['phpgw']->accounts->name2id($_accountName);
$emailAddress = $GLOBALS['phpgw']->accounts->id2name(accountID,'account_email');
$emailAddress = $GLOBALS['phpgw']->accounts->id2name($accountID,'account_email');
if(empty($emailAddress))
$emailAddress = $_accountName.'@'.$this->profileData['defaultDomain'];