]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/task_functions.php
Missing SVN properties set
[mailer.git] / inc / libs / task_functions.php
index 5656d7523cd110ff1d7de3dd224c23667d1ab30c..10298ce43d7751f05e0d6d23d5b5e062b500767f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 08/03/2004 *
- * ================                             Last change: 11/19/2005 *
+ * Mailer v0.2.1-FINAL                                Start: 08/03/2004 *
+ * ===================                          Last change: 11/19/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : task_functions.php                               *
@@ -39,7 +39,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-}
+} // END - if
 
 //
 // The advanced overview shows detailed informations to your exchange script:
@@ -116,7 +116,7 @@ function outputAdvancedOverview (&$result_main) {
        //
        // Unassigned tasks
        //
-       $value = countSumTotalData('0', 'task_system', 'id', 'assigned_admin', true, " AND `status` != 'DELETED'");
+       $value = countSumTotalData(0, 'task_system', 'id', 'assigned_admin', true, " AND `status` != 'DELETED'");
 
        if ($value > 0) {
                $content['new_tasks'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=list_task&amp;type=unassigned\">".$value."</a>";
@@ -268,7 +268,7 @@ ORDER BY
                $TITLEs[] = getMessage('ADMIN_TASK_INACTIVE_AUTOPURGE_TITLE');
        }
 
-       if (getExtensionVersion('sql_patches') >= '0.3.4') {
+       if (isExtensionInstalledAndNewer('sql_patches', '0.3.4')) {
                // Check for accounts without referal
                addSql("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `refid`=0 ORDER BY `userid` ASC");
                $DESCRs[] = getMessage('ADMIN_TASK_LIST_ACCOUNT_NOREF');
@@ -574,13 +574,13 @@ function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
                        );
 
                        // Rewrite CSS class if not last entry is reached
-                       if ($key < (count($sqls) - 1)) $content['bottom'] = 'bottom2';
+                       if ($key < (count($sqls) - 1)) $content['bottom'] = 'bottom';
 
                        if (($value > 0) && (!empty($WHATs[$key]))) {
                                if (empty($TITLEs[$key])) $TITLEs[$key] = getMessage('ADMIN_TASK_UNKNOWN_LIST_TITLE');
                                $content['row_link'] = "<a href=\"{?URL?}/modules.php?module=admin&amp;what=".$WHATs[$key]."\" title=\"".$TITLEs[$key]."\">".$value."</a>";
                        } else {
-                               $content['row_link'] = 0;
+                               $content['row_link'] = '0';
                        }
 
                        // And insert the final string into extras template