From: cajus Date: Thu, 12 Jan 2006 14:39:16 +0000 (+0000) Subject: Added speed optimization X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5a7d6e93b0b66e2f2cc24cd4860ce2b700b4b13;p=gosa.git Added speed optimization git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2466 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc index 8b2c2b6ae..6cddc6321 100644 --- a/plugins/admin/groups/class_groupGeneric.inc +++ b/plugins/admin/groups/class_groupGeneric.inc @@ -372,13 +372,9 @@ class group extends plugin $this->users= array(); $ldap= $this->config->get_ldap_link(); $gufilter= get_global("gufilter"); - $ldap->cd ($gufilter['dselect']); - $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))"); - natcasesort ($this->users); - reset ($this->users); $ldap->cd ($gufilter['dselect']); - $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))"); + $ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))", array("uid", "sn", "givenName")); $this->allusers= array(); while ($attrs= $ldap->fetch()){ if (isset($attrs["givenName"][0]) && isset($attrs["sn"][0])){