sort receipients (RFE 3170336)

This commit is contained in:
Roland Gruber 2011-02-13 12:34:24 +00:00
parent c8ec78398d
commit 70310f29e8
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2010 Roland Gruber
Copyright (C) 2004 - 2011 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -146,6 +146,8 @@ class nisMailAlias extends baseModule {
// list current recipients
$recipientCount = 0;
if (isset($this->attributes['rfc822MailMember'])) {
natcasesort($this->attributes['rfc822MailMember']);
$this->attributes['rfc822MailMember'] = array_values($this->attributes['rfc822MailMember']);
$recipientCount = sizeof($this->attributes['rfc822MailMember']);
for ($i = 0; $i < sizeof($this->attributes['rfc822MailMember']); $i++) {
$return->addElement(new htmlOutputText(_('Recipient')));