if (isFormSent('edit')) {
// Check if at least one module is selected
- if (countPostSelection() > 0) {
+ if (ifPostContainsSelections()) {
// Output header
$OUT = '';
loadTemplate('admin_settings_saved', false, '{--ADMIN_MODS_CHANGED--}');
}
-if (countPostSelection() == 0) {
+if (!ifPostContainsSelections()) {
// Load module data (We do not need to check if there's at least one...)
$result = SQL_QUERY('SELECT
`id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`