X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_edit.php;h=8ac0ecb36ee12375da83e3c02265c08dac657b22;hb=928e9aedd8248545a9fef27c75a5ba016ad1d61b;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..8ac0ecb36e 100644 --- a/inc/modules/admin/what-admins_edit.php +++ b/inc/modules/admin/what-admins_edit.php @@ -1,7 +1,7 @@ 1)); + setPostRequestElement('edit', 1); + setPostRequestElement('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('do_edit')) && (ifPostContainsSelections('login'))) { // Change admin accounts adminsChangeAdminAccount(postRequestArray()); -} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0)) { +} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) { // Show admin accounts for deletetion adminsDeleteAdminAccount(postRequestArray()); } else { - if ((isPostRequestElementSet('remove')) && (countPostSelection() > 0)) { + if ((isFormSent('do_delete')) && (ifPostContainsSelections())) { // Remove accounts now adminsRemoveAdminAccount(postRequestArray()); } // END - if