index 18cf1a1ee9f4715a41e40ebf6502c2a39bb64dde..6bb735263dbf740e71486335e6bebb4c169d9904 100644 (file)
unset($this->config->data['MENU'][$section][$id]);
}
}
+
+ // Remove empty sections
+ if(count($this->config->data['MENU'][$section]) == 0){
+ unset($this->config->data['MENU'][$section]);
+ }
}
}
"\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 + \"&reset=1\");".
+ "\n \"main.php?plug=\" + id + \"&reset=1\");".
"\n }".
"\n </script>\n";
}