X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_admins.php;h=b5c0af248dfd7aa7425fd98d225872fb782d85e2;hb=e1235e719b767d6693976c3d24489beaa38a3667;hp=46da2c11fc6c29a3900263d501ffeb5f0c939efa;hpb=d495bd859975d08ee459d03c9b1cd51dd9b9304d;p=mailer.git diff --git a/inc/modules/admin/what-config_admins.php b/inc/modules/admin/what-config_admins.php index 46da2c11fc..b5c0af248d 100644 --- a/inc/modules/admin/what-config_admins.php +++ b/inc/modules/admin/what-config_admins.php @@ -1,7 +1,7 @@ 0)) { +if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0)) { // Edit ACLs $OUT = ''; $SW = 2; foreach (postRequestElement('sel') as $id => $selected) { @@ -82,7 +79,7 @@ if ((isPostRequestElementSet('edit')) && ($SEL > 0)) { // Load main template loadTemplate('admin_config_admins_edit', false, $OUT); -} elseif ((isPostRequestElementSet('change')) && ($SEL > 0)) { +} elseif ((isPostRequestElementSet('change')) && (countPostSelection() > 0)) { // Change entries foreach (postRequestElement('sel') as $id => $selected) { // Secure id @@ -106,7 +103,7 @@ if ((isPostRequestElementSet('edit')) && ($SEL > 0)) { // Entries changed loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ADMINS_ENTRIES_CHANGED')); -} elseif ((isPostRequestElementSet('del')) && ($SEL > 0)) { +} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0)) { // Delete ACLs $OUT = ''; $SW = 2; foreach (postRequestElement('sel') as $id => $selected) { @@ -143,7 +140,7 @@ if ((isPostRequestElementSet('edit')) && ($SEL > 0)) { // Load main template loadTemplate('admin_config_admins_del', false, $OUT); -} elseif ((isPostRequestElementSet('remove')) && ($SEL > 0)) { +} elseif ((isPostRequestElementSet('remove')) && (countPostSelection() > 0)) { // Remove entries // @TODO Rewrite this to filter 'run_sqls' foreach (postRequestElement('sel') as $id => $selected) {