From: hickert Date: Thu, 29 Jul 2010 12:45:52 +0000 (+0000) Subject: Updated post handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=07dc5b5e4bcc8006f2a5b424ff7a17d8a1da1497;p=gosa.git Updated post handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19233 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); - } } ?>