]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_mods.php
More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / admin / what-config_mods.php
index aad70b3f7489f8660b5df4cc05e05bb590013041..809f4be165eadc650ede036fbc2f8d5dac3c1cec 100644 (file)
@@ -47,7 +47,7 @@ addMenuDescription('admin', __FILE__);
 
 if (isFormSent('edit')) {
        // Check if at least one module is selected
-       if (countPostSelection() > 0) {
+       if (ifPostContainsSelections()) {
                // Output header
                $OUT = '';
 
@@ -122,7 +122,7 @@ if (isFormSent('edit')) {
        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`