Code

Fixed proposal pre-selection
[gosa.git] / gosa-core / include / class_pluglist.inc
index 18cf1a1ee9f4715a41e40ebf6502c2a39bb64dde..6bb735263dbf740e71486335e6bebb4c169d9904 100644 (file)
@@ -212,6 +212,11 @@ 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]); 
+          } 
         }
       }
 
@@ -256,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"; 
     }