Code

Made sub search work
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Aug 2009 12:27:04 +0000 (12:27 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Aug 2009 12:27:04 +0000 (12:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14091 594d385d-05f5-0310-b6e9-bd551577e9d8

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;
   }