]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_task.php
Naming convention, internal TODOs solved:
[mailer.git] / inc / modules / admin / what-list_task.php
index f487a432a2bb08bee05c4afdcf36a62f112dbd0e..f9884af24a42155d0a85ae2c0a1c706e147b864b 100644 (file)
@@ -85,7 +85,7 @@ switch (getRequestParameter('type')) {
 } // END - switch
 
 if (!empty($whereStatement)) {
-       if ((isPostRequestParameterSet('assign')) && (countPostSelection() > 0)) {
+       if ((isPostRequestParameterSet('assign')) && (ifPostContainsSelections())) {
                // Assign / do tasks
                loadIncludeOnce('inc/modules/admin/overview-inc.php');
                if (empty($dmy)) $dmy = '';
@@ -104,7 +104,7 @@ ORDER BY
        `subject` ASC,
        `task_created` DESC',
                        __FILE__, __LINE__);
-               if ((countPostSelection() > 0) && (!isDemoModeActive())) {
+               if ((ifPostContainsSelections()) && (!isDemoModeActive())) {
                        // Only unassign / delete tasks when there are selected tasks posted
                        if (isPostRequestParameterSet('unassign')) {
                                // Unassign from tasks
@@ -142,7 +142,7 @@ ORDER BY
                }
 
                // There are uncompleted jobs!
-               $OUT = ''; $SW = 2;
+               $OUT = '';
                while ($content = SQL_FETCHARRAY($result_tasks)) {
                        // Init infos
                        $content['infos'] = '';
@@ -169,7 +169,6 @@ ORDER BY
 
                        // Prepare content
                        $content = merge_array($content, array(
-                               'sw'            => $SW,
                                'assign_admin'  => $content['assigned_admin'],
                                'userid'        => $content['userid'],
                                'task_type_msg' => $content['task_type_msg'],
@@ -184,9 +183,6 @@ ORDER BY
                                // Load default row template
                                $OUT .= loadTemplate('admin_list_task_rows', true, $content);
                        }
-
-                       // Switch colors
-                       $SW = 3 - $SW;
                } // END - while
 
                // Free memory