X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_edit.php;h=8f45314ccc77ca581cd723ea75c7af4cfe486267;hb=aebafd5a0fceb05860bb74582387db183193e0b8;hp=8da2ac029298eafe51c457a65eb16212b32d2539;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df;p=mailer.git diff --git a/inc/modules/admin/what-admins_edit.php b/inc/modules/admin/what-admins_edit.php index 8da2ac0292..8f45314ccc 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')) && (count(postRequestElement('login')) > 0)) { // 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