]> git.mxchange.org Git - mailer.git/blobdiff - inc/autopurge/purge-tsks.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / autopurge / purge-tsks.php
index 8ef2be43f560a04a285fa83a62adc6be7de0904b..a27bc73cb76aa1a1afc1e8eb38bd1c1eca1a8b1d 100644 (file)
@@ -43,13 +43,13 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Abort if autopurge is not active or disabled by admin
 } // END - if
 
 // Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE("autopurge")) || (getConfig('auto_purge_active') != "Y")) {
+if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) {
        // Abort here
        return false;
 } // END - if
 
 // Check version (must be > 0.0)
        // Abort here
        return false;
 } // END - if
 
 // Check version (must be > 0.0)
-if ((GET_EXT_VERSION("task") > "0.0") && (getConfig('ap_tasks') == "Y")) {
+if ((GET_EXT_VERSION('task') > '0.0') && (getConfig('ap_tasks') == 'Y')) {
        // Since when shall we purge?
        $since = getConfig(('ap_tasks_time'));
 
        // Since when shall we purge?
        $since = getConfig(('ap_tasks_time'));
 
@@ -63,9 +63,9 @@ WHERE `status`='DELETED' AND task_created <= (UNIX_TIMESTAMP() - %s)",
        $DELETED = SQL_AFFECTEDROWS();
 
        // Do we need to send a notification?
        $DELETED = SQL_AFFECTEDROWS();
 
        // Do we need to send a notification?
-       if (($DELETED > 0) && (getConfig('ap_tasks_notify') == "Y")) {
+       if (($DELETED > 0) && (getConfig('ap_tasks_notify') == 'Y')) {
                // Send out email to admin
                // Send out email to admin
-               SEND_ADMIN_NOTIFICATION(getMessage('AUTOPURGE_ADMIN_TASKS_SUBJECT'), "admin_autopurge_tsks", $DELETED, "");
+               SEND_ADMIN_NOTIFICATION(getMessage('AUTOPURGE_ADMIN_TASKS_SUBJECT'), "admin_autopurge_tsks", $DELETED, '');
        } // END - if
 } // END - if
 
        } // END - if
 } // END - if