]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_task.php
Direct registration added, typo fixed, admin session on missing/failed login fixed...
[mailer.git] / inc / modules / admin / what-list_task.php
index c00272e2870ccad4d9b9eadf41dd1edfca2d26b6..251cf29082cdd2a8956954a1060d033c03a34bf4 100644 (file)
@@ -161,15 +161,17 @@ ORDER BY userid DESC, task_type DESC, subject, task_created DESC", __FILE__, __L
                                $infos = substr($subj, 1, strpos($subj, ":") - 1);
                                break;
                        }
-                       if ($uid > 0)
-                       {
+
+                       // Member assigned with task?
+                       if ($uid > 0) {
                                // Member found otherwise it's a system task
                                $uid = ADMIN_USER_PROFILE_LINK($uid);
-                       }
-                        else
-                       {
+                       } else {
+                               // Is a system task!
                                $uid = "<I>".ADMIN_IS_SYSTEM_TASK."</I>";
                        }
+
+                       // Prepare content
                        $content = array(
                                'sw'      => $SW,
                                'id'      => $id,
@@ -179,7 +181,17 @@ ORDER BY userid DESC, task_type DESC, subject, task_created DESC", __FILE__, __L
                                'type'    => $type_out,
                                'created' => MAKE_DATETIME($created, "2")
                        );
-                       LOAD_TEMPLATE("admin_list_task_rows", false, $content);
+
+                       // Do we have an extension task?
+                       if ($type == "EXTENSION") {
+                               // Load extension row template
+                               LOAD_TEMPLATE("admin_list_task_ext_rows", false, $content);
+                       } else {
+                               // Load default row template
+                               LOAD_TEMPLATE("admin_list_task_rows", false, $content);
+                       }
+
+                       // Switch colors
                        $SW = 3 - $SW;
                }