Code

Added pulldown js
[gosa.git] / gosa-core / include / class_filterLDAP.inc
index 222225b2b1950788f0e9a3b05cb148ce47bad74b..f2cfd53b076fef5b5d72414c90685cc3b00279d5 100644 (file)
@@ -6,9 +6,10 @@ class filterLDAP {
   {
     $config= session::global_get('config');
     $ldap= $config->get_ldap_link(TRUE);
+    $flag= ($scope == "sub")?GL_SUBSEARCH:0;
     $result= filterLDAP::get_list($base, $scope, $filter, $attributes,
                                   $category, $objectStorage, $objectBase,
-                                  GL_SUBSEARCH | GL_SIZELIMIT);
+                                  $flag | GL_SIZELIMIT);
     return $result;
   }