From 07dc5b5e4bcc8006f2a5b424ff7a17d8a1da1497 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 12:45:52 +0000 Subject: [PATCH] Updated post handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19233 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/mimetypes/class_filterMIMETYPES.inc | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gosa-plugins/goto/admin/mimetypes/class_filterMIMETYPES.inc b/gosa-plugins/goto/admin/mimetypes/class_filterMIMETYPES.inc index eec5c293c..2dddba8cb 100644 --- a/gosa-plugins/goto/admin/mimetypes/class_filterMIMETYPES.inc +++ b/gosa-plugins/goto/admin/mimetypes/class_filterMIMETYPES.inc @@ -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); - } } ?> -- 2.30.2