merged r29611/2: fixed getAccountEmailAddress ...

This commit is contained in:
Ralf Becker 2010-03-23 13:56:52 +00:00
parent d72984ba78
commit 87c988afee

View File

@ -174,11 +174,11 @@ class emailadmin_smtp_ldap extends defaultsmtp
{
foreach($allValues[0]['mail'] as $key => $value)
{
if ($key == 'count') continue;
if ($key === 'count') continue;
$emailAddresses[] = array (
'name' => $realName,
'address' => $allValues[0]['mail'][0],
'address' => $value,
'type' => !$key ? 'default' : 'alternate',
);
}
@ -187,7 +187,7 @@ class emailadmin_smtp_ldap extends defaultsmtp
{
foreach($allValues[0][$this->config['alias_attr']] as $key => $value)
{
if ($key == 'count') continue;
if ($key === 'count') continue;
$emailAddresses[] = array(
'name' => $realName,