X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_task.php;h=acb3c276cf197b182ec0ca4435b69e02ca221eca;hp=3b0a16f0abeb6566c7439f93832137d65a62c6f4;hb=a25637b93148d07ef65b9e8978841c4988dac669;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df diff --git a/inc/modules/admin/what-list_task.php b/inc/modules/admin/what-list_task.php index 3b0a16f0ab..acb3c276cf 100644 --- a/inc/modules/admin/what-list_task.php +++ b/inc/modules/admin/what-list_task.php @@ -84,10 +84,7 @@ switch (getRequestElement('type')) { } if (!empty($whereStatement)) { - $SEL = 0; - if (isPostRequestElementSet(('task'))) $SEL = countSelection(postRequestElement('task')); - - if ((isPostRequestElementSet(('assign'))) && ($SEL > 0)) { + if ((isPostRequestElementSet('assign')) && (countPostSelection() > 0)) { // Assign / do tasks loadIncludeOnce("inc/modules/admin/overview-inc.php"); if (empty($dmy)) $dmy = ''; @@ -106,7 +103,7 @@ ORDER BY `subject` ASC, `task_created` DESC', __FILE__, __LINE__); - if (($SEL > 0) && (!isDemoModeActive())) { + if ((countPostSelection() > 0) && (!isDemoModeActive())) { // Only unassign / delete tasks when there are selected tasks posted if (isPostRequestElementSet('unassign')) { // Unassign from tasks