* email: compose, control the display of identities - identical identities should only be displayed once

This commit is contained in:
Klaus Leithoff 2011-07-28 10:27:58 +00:00
parent 6399e345cf
commit 4fc9ab1a66

View File

@ -364,7 +364,7 @@
$defaultIdentity = 0;
foreach($allIdentities as $key => $singleIdentity) {
#$identities[$singleIdentity->id] = $singleIdentity->realName.' <'.$singleIdentity->emailAddress.'>';
$identities[$key] = $singleIdentity->realName.' <'.$singleIdentity->emailAddress.'>';
if (array_search($singleIdentity->realName.' <'.$singleIdentity->emailAddress.'>',$identities)==false) $identities[$key] = $singleIdentity->realName.' <'.$singleIdentity->emailAddress.'>';
if(!empty($singleIdentity->default)) {
#$defaultIdentity = $singleIdentity->id;
$defaultIdentity = $key;