From f87ae108f79882fce3f59bb427bc5e7b1e727b51 Mon Sep 17 00:00:00 2001 From: wolffc Date: Thu, 16 Sep 2010 14:41:37 +0000 Subject: [PATCH] Optimize LDAP search further by only checking for a non-zero object count. This removes the need to size-limit the search to 1, which clashes with the new 'sizelimitWarning' option. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19724 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gosa-core/plugins/admin/groups/class_divListGroup.inc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/trunk/gosa-core/plugins/admin/groups/class_divListGroup.inc b/trunk/gosa-core/plugins/admin/groups/class_divListGroup.inc index c53613cc0..12088a882 100644 --- a/trunk/gosa-core/plugins/admin/groups/class_divListGroup.inc +++ b/trunk/gosa-core/plugins/admin/groups/class_divListGroup.inc @@ -239,14 +239,9 @@ class divListGroup extends MultiSelectWindow /* Set ldap base to dn of this group */ $ldap->cd ($val['dn']); - /* Set ldap size limit to 1, because we only need one entry */ - $ldap->set_size_limit(1); - /* Search for applications. */ $ldap->search("(objectClass=gotoMenuEntry)",array("dn")); - $entry = $ldap->fetch(); - - if (isset($entry['dn'])) { + if ($ldap->count()) { $appl = $applimg; } -- 2.30.2