Fixes for 'empty version'
[mailer.git] / inc / libs / task_functions.php
index 585517a42651acf45dbb42293989ca34a34bd778..f59554b1e374fb9dbf67c0b850dc2802586850b2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 08/03/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 08/03/2004 *
  * ================                             Last change: 11/19/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
@@ -39,7 +39,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-}
+} // END - if
 
 //
 // The advanced overview shows detailed informations to your exchange script:
@@ -79,7 +79,7 @@ function outputAdvancedOverview (&$result_main) {
                        'purged_mails','purged_bonus_mails'
                ) as $entry) {
                // Set it to zero
-               $content[$entry] = 0;
+               $content[$entry] = '0';
        } // END - foreach
 
        // Extension updates found
@@ -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');
@@ -580,7 +580,7 @@ function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
                                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