]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_edit.php
More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / modules / admin / what-admins_edit.php
index 05747bc21edfd18a0604869df6bc6b6525897c2a..3826085fc4c8792c728c1d92337344b272dc8f31 100644 (file)
@@ -58,17 +58,17 @@ if (isGetRequestParameterSet('admin')) {
        setPostRequestParameter('sel', array($adminId => 1));
 } // END - if
 
-if ((isFormSent('edit')) && (countPostSelection() > 0)) {
+if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        // Edit account(s)
        adminsEditAdminAccount(postRequestArray());
 } elseif ((isFormSent('change')) && (count(postRequestParameter('login')) > 0)) {
        // Change admin accounts
        adminsChangeAdminAccount(postRequestArray());
-} elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
+} elseif ((isFormSent('del')) && (ifPostContainsSelections())) {
        // Show admin accounts for deletetion
        adminsDeleteAdminAccount(postRequestArray());
 } else {
-       if ((isFormSent('remove')) && (countPostSelection() > 0)) {
+       if ((isFormSent('remove')) && (ifPostContainsSelections())) {
                // Remove accounts now
                adminsRemoveAdminAccount(postRequestArray());
        } // END - if