mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
fix problem with reply all, own email address not taken out of recipients, when master-profile
This commit is contained in:
parent
b8dccc2641
commit
9f43ef9b42
@ -505,14 +505,15 @@ class mail_bo
|
||||
*/
|
||||
function getUserEMailAddresses($_profileID=null) {
|
||||
$acc = emailadmin_account::read((!empty($_profileID)?$_profileID:$this->profileID));
|
||||
//error_log(__METHOD__.__LINE__.':'.array2string($acc));
|
||||
$identities = $acc->identities();
|
||||
|
||||
$userEMailAdresses = array();
|
||||
$userEMailAdresses = array($acc['ident_email']=>$acc['ident_realname']);
|
||||
|
||||
foreach($identities as $ik => $ident) {
|
||||
//error_log(__METHOD__.__LINE__.':'.$ik.'->'.array2string($ident));
|
||||
$identity = emailadmin_account::read_identity($ik);
|
||||
$userEMailAdresses[$identity['ident_email']] = $identity['ident_realname'];
|
||||
if (!empty($identity['ident_email']) && !isset($userEMailAdresses[$identity['ident_email']])) $userEMailAdresses[$identity['ident_email']] = $identity['ident_realname'];
|
||||
}
|
||||
//error_log(__METHOD__.__LINE__.array2string($userEMailAdresses));
|
||||
return $userEMailAdresses;
|
||||
|
Loading…
Reference in New Issue
Block a user