From: cajus Date: Wed, 26 Apr 2006 13:04:45 +0000 (+0000) Subject: Applied 01_netatalk_bugfixes.diff from Bernd Zeimetz (partly) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=24515ce15a7012aae8a2a832b0ae171c47b99e00;p=gosa.git Applied 01_netatalk_bugfixes.diff from Bernd Zeimetz (partly) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3124 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_setup.inc b/include/functions_setup.inc index d800479f5..a55866635 100644 --- a/include/functions_setup.inc +++ b/include/functions_setup.inc @@ -625,11 +625,10 @@ function parse_contrib_conf() $str = str_replace("mailMethod=\"{MAILMETHOD}\"","",$str); } - /* Remove all unused plugins */ - foreach($possible_plugins as $key=> $plugin) { - foreach($plugin as $key=>$val) { - if(in_array($plugin,$classes)) { + foreach(array_keys($possible_plugins) as $akey) { + if(array_key_exists($akey,$classes)) { + foreach($possible_plugins[$akey] as $key=>$val) { $str = preg_replace($val,"\n",$str); } }