Code

Applied 01_netatalk_bugfixes.diff from Bernd Zeimetz (partly)
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Apr 2006 13:04:45 +0000 (13:04 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Apr 2006 13:04:45 +0000 (13:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3124 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions_setup.inc

index d800479f5250d77703252f142527028a348b68ed..a558666355cbac4caf995620808917ba5211362b 100644 (file)
@@ -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);
         }
       }