Code

Do subsearches if the filter is not set to auto
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Nov 2009 16:32:02 +0000 (16:32 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Nov 2009 16:32:02 +0000 (16:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14841 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_filterLDAP.inc

index e929bee90f1781a88cce2a3570b83fab8a901b1a..7697462049580281c7976e3314516cdeafd5e74f 100644 (file)
@@ -24,7 +24,7 @@ class filterLDAP {
     if (!is_array($objectStorage)) {
       $objectStorage= array($objectStorage);
     }
-    $method= empty($objectStorage)?"ls":"search";
+    $method= (empty($objectStorage) && !($flags & GL_SUBSEARCH))?"ls":"search";
 
     // Initialize search bases
     $bases= array();