Code

Updated saving of dyngroups
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jun 2010 12:12:37 +0000 (12:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jun 2010 12:12:37 +0000 (12:12 +0000)
-Add brackets if missing

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18821 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc

index 28ebd67b0f73b5063065e8844903a60fb3e1c625..6fcf63bb416f8dd6340bba7058d83c285d505c72 100644 (file)
@@ -240,7 +240,9 @@ class DynamicLdapGroup extends plugin
         $this->labeledURI = array();
         foreach($this->labeledURIparsed as $entry){
             $scope = $this->scopes[$entry['scope']];
-            $this->labeledURI[] = "{$entry['base']}?{$entry['attr']}?{$scope}?{$entry['filter']}";
+            $filter = $entry['filter'];
+            $filter = '('.trim($filter, '() ').')';
+            $this->labeledURI[] = "{$entry['base']}?{$entry['attr']}?{$scope}?{$filter}";
         }
         $this->labeledURI = array_unique($this->labeledURI);