summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2010-08-23 09:04:55 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2010-08-23 09:04:55 (GMT)
commit30b3bc5c346519a601488201bfacf93bd845c158 (patch)
tree33eae7284415d5d8a902f161853fdb9a3a3fe0cc /lib
parentfd88a93ad41e18befacbe34e3824adf6e2c824ef (diff)
downloadkolab-webadmin-30b3bc5c346519a601488201bfacf93bd845c158.tar.gz
kolab/issue4515 (Sort some additional lists in the web admin)
Diffstat (limited to 'lib')
-rw-r--r--lib/KolabAdmin/Ldap.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/KolabAdmin/Ldap.php b/lib/KolabAdmin/Ldap.php
index 5adf608..ac73200 100644
--- a/lib/KolabAdmin/Ldap.php
+++ b/lib/KolabAdmin/Ldap.php
@@ -352,6 +352,7 @@ class KolabLDAP {
$domains[] = $val['cn'][0];
}
}
+ sort($domains);
return $domains;
}
@@ -445,8 +446,9 @@ class KolabLDAP {
if( $reload || !$this->cached_domains ) {
$kolab_obj = $this->read( 'k=kolab,'.$_SESSION['base_dn'] );
if( !$kolab_obj ) return false;
+ unset($kolab_obj['postfix-mydestination']['count']);
+ sort($kolab_obj['postfix-mydestination']);
$this->cached_domains = $kolab_obj['postfix-mydestination'];
- unset($this->cached_domains['count']);
debug("loading domains");
}
debug("ldap->domains() returns ".join(", ", $this->cached_domains));