X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-memedit.php;h=0d5f0e4e71da1be36c07dfc44913ae19cb02fdb6;hb=c1671a3b6c02326b471916a28f4177c453871f51;hp=4bdeedc178eaf1299d408d18d07641d747a5d0d9;hpb=d495bd859975d08ee459d03c9b1cd51dd9b9304d;p=mailer.git diff --git a/inc/modules/admin/what-memedit.php b/inc/modules/admin/what-memedit.php index 4bdeedc178..0d5f0e4e71 100644 --- a/inc/modules/admin/what-memedit.php +++ b/inc/modules/admin/what-memedit.php @@ -1,7 +1,7 @@ 0) && (!isDemoModeActive())) { +if ((isPostRequestElementSet('edit')) && (countPostSelection() > 0) && (!isDemoModeActive())) { // Edit menu entries $content['sub'] = $SUB; - $content['chk'] = $chk; + $content['chk'] = countPostSelection(); $SW = 2; $cnt = '0'; $OUT = ''; foreach (postRequestElement('sel') as $sel => $confirm) { if ($confirm == 1) { @@ -100,10 +96,10 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) { // Load template loadTemplate('admin_mmenu_edit', false, $content); -} elseif ((isPostRequestElementSet('del')) && ($chk > 0) && (!isDemoModeActive())) { +} elseif ((isPostRequestElementSet('del')) && (countPostSelection() > 0) && (!isDemoModeActive())) { // Del menu entries with or without confirmation $content['sub'] = $SUB; - $content['chk'] = $chk; + $content['chk'] = countPostSelection(); $SW = 2; $cnt = '0'; $OUT = ''; foreach (postRequestElement('sel') as $sel => $confirm) { if ($confirm == 1) { @@ -139,10 +135,10 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) { // Load template loadTemplate('admin_mmenu_delete', false, $content); -} elseif ((isPostRequestElementSet('status')) && ($chk > 0) && (!isDemoModeActive())) { +} elseif ((isPostRequestElementSet('status')) && (countPostSelection() > 0) && (!isDemoModeActive())) { // Change status (visible / locked) $content['sub'] = $SUB; - $content['chk'] = $chk; + $content['chk'] = countPostSelection(); $SW = 2; $cnt = '0'; $OUT = ''; foreach (postRequestElement('sel') as $sel => $confirm) { if ($confirm == 1) {