X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_edit.php;h=3826085fc4c8792c728c1d92337344b272dc8f31;hb=b09f26917617231dde299c91fdbe448078e5f568;hp=41e9536f346fa4d871cefbabb4900fae3eda8463;hpb=d3c4fdd9bfab35389e1a5ff48f3952d527c7b4bb;p=mailer.git diff --git a/inc/modules/admin/what-admins_edit.php b/inc/modules/admin/what-admins_edit.php index 41e9536f34..3826085fc4 100644 --- a/inc/modules/admin/what-admins_edit.php +++ b/inc/modules/admin/what-admins_edit.php @@ -1,7 +1,7 @@ 1)); + setPostRequestParameter('edit', 1); + setPostRequestParameter('sel', array($adminId => 1)); } // END - if -if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) { +if ((isFormSent('edit')) && (ifPostContainsSelections())) { // Edit account(s) adminsEditAdminAccount(postRequestArray()); -} elseif ((isPostRequestElementSet('change')) && (count(postRequestElement('login')) > 0)) { +} elseif ((isFormSent('change')) && (count(postRequestParameter('login')) > 0)) { // Change admin accounts adminsChangeAdminAccount(postRequestArray()); -} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0)) { +} elseif ((isFormSent('del')) && (ifPostContainsSelections())) { // Show admin accounts for deletetion adminsDeleteAdminAccount(postRequestArray()); } else { - if ((isPostRequestElementSet('remove')) && (countPostSelection() > 0)) { + if ((isFormSent('remove')) && (ifPostContainsSelections())) { // Remove accounts now adminsRemoveAdminAccount(postRequestArray()); } // END - if