From 24515ce15a7012aae8a2a832b0ae171c47b99e00 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 26 Apr 2006 13:04:45 +0000 Subject: [PATCH] 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 --- include/functions_setup.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } } -- 2.30.2