Code

Updated post handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 12:45:52 +0000 (12:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 12:45:52 +0000 (12:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19233 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/mimetypes/class_filterMIMETYPES.inc

index eec5c293c208f89dada51012a538d120926b4a65..2dddba8cb1884ab5a20f3ccb228c172d5424c0ec 100644 (file)
@@ -2,18 +2,18 @@
 
 class filterMIMETYPES extends filterLDAP{
 
-  static function query($base, $scope, $filter, $attributes, $category, $objectStorage= "")
-  {
-    $res = filterLDAP::query($base, $scope, $filter, $attributes, $category, $objectStorage);
+    static function query($base, $scope, $filter, $attributes, $category, $objectStorage= "")
+    {
+        $res = filterLDAP::query($base, $scope, $filter, $attributes, $category, $objectStorage);
 
-    foreach($res as $id => $entry){
-      if(isset($entry['FAIstate']) && preg_match("/freeze/i", $entry['FAIstate'][0])){
-        $res[$id]['objectClass'][] = 'FAKE_OC_freeze';
-      }else{
-        $res[$id]['objectClass'][] = 'FAKE_OC_branch';
-      }
+        foreach($res as $id => $entry){
+            if(isset($entry['FAIstate']) && preg_match("/freeze/i", $entry['FAIstate'][0])){
+                $res[$id]['objectClass'][] = 'FAKE_OC_freeze';
+            }else{
+                $res[$id]['objectClass'][] = 'FAKE_OC_branch';
+            }
+        }
+        return($res);
     }
-    return($res);
-  }
 }
 ?>