Code

Enabled sorting
[gosa.git] / 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();