]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_task.php
Fix in templates task->sel for countPostSelection()
[mailer.git] / inc / modules / admin / what-list_task.php
index 3b0a16f0abeb6566c7439f93832137d65a62c6f4..acb3c276cf197b182ec0ca4435b69e02ca221eca 100644 (file)
@@ -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