Code

Fixed proposal pre-selection
[gosa.git] / gosa-core / include / class_pluglist.inc
index 0e025420105cc363258e026d2c753f2199146e21..6bb735263dbf740e71486335e6bebb4c169d9904 100644 (file)
@@ -212,14 +212,14 @@ class pluglist
               unset($this->config->data['MENU'][$section][$id]); 
             }
           }
+
+          // Remove empty sections 
+          if(count($this->config->data['MENU'][$section]) == 0){ 
+              unset($this->config->data['MENU'][$section]); 
+          } 
         }
       }
 
-      // Remove empty sections 
-      if(count($this->config->data['MENU'][$section]) == 0){ 
-          unset($this->config->data['MENU'][$section]); 
-      } 
-
       $disabledPlugins = $this->config->configRegistry->getDisabledPlugins();
 
       $cfg= $this->config->data['MENU'];
@@ -261,7 +261,7 @@ class pluglist
         "\n      <script language='javascript' type='text/javascript'>".
         "\n        function openPlugin(id){".
         "\n          return question(\""._("You are currently editing a database entry. Do you want to discard the changes?")."\",".
-        "\n            \"main.php?plug=\" + id + \"&amp;reset=1\");".
+        "\n            \"main.php?plug=\" + id + \"&reset=1\");".
         "\n        }".
         "\n      </script>\n"; 
     }