From: hickert Date: Tue, 22 Apr 2008 11:10:43 +0000 (+0000) Subject: Fixed grpup/app detection - sozelimit warning was shown X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f6eac4b05b18d05fd7ab39d6740c3dbeb7bb7149;p=gosa.git Fixed grpup/app detection - sozelimit warning was shown git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10615 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/class_divListGroup.inc b/gosa-core/plugins/admin/groups/class_divListGroup.inc index 119d6be69..631ddaf4b 100644 --- a/gosa-core/plugins/admin/groups/class_divListGroup.inc +++ b/gosa-core/plugins/admin/groups/class_divListGroup.inc @@ -281,9 +281,11 @@ class divListGroup extends MultiSelectWindow /* Fetch all application menu entries */ $base = get_groups_ou().$this->selectedBase; - $res = get_list("(objectClass=gotoMenuEntry)","application",$base,array("dn")); + $ldap = $this->config->get_ldap_link(); + $ldap->cd ($base); + $ldap->search("(objectClass=gotoMenuEntry)",array("dn")); $configured_apps = array(); - foreach($res as $entry){ + while($entry = $ldap->fetch()){ $dn = preg_replace("/^.*(cn=[^,]+,".normalizePreg(get_groups_ou()).")/","\\1",$entry['dn']); $configured_apps[$dn] = $dn; }