From 4fc9ab1a667de077fcf79cf30215d5ea5fd683d3 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 28 Jul 2011 10:27:58 +0000 Subject: [PATCH] * email: compose, control the display of identities - identical identities should only be displayed once --- felamimail/inc/class.uicompose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/felamimail/inc/class.uicompose.inc.php b/felamimail/inc/class.uicompose.inc.php index 4626adbe28..59e94c894d 100644 --- a/felamimail/inc/class.uicompose.inc.php +++ b/felamimail/inc/class.uicompose.inc.php @@ -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;