A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / autopurge / purge-general.php
index dc3454f56608e6f9960bc45d2f468ef304010b53..4129c58c99c7dd83989071fde64e8e433ec38c2b 100644 (file)
@@ -44,12 +44,12 @@ if (!defined('__SECURITY')) {
 }
 
 // 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;
 }
 
-if ((getConfig('auto_purge_active') == "Y") && (getConfig('auto_purge') > 0)) {
+if ((getConfig('auto_purge_active') == 'Y') && (getConfig('auto_purge') > 0)) {
        // Init SQLs
        INIT_SQLS();
 
@@ -105,7 +105,7 @@ WHERE s.timestamp_ordered <= (UNIX_TIMESTAMP() - %s) ORDER BY s.userid",
        SQL_FREERESULT($result);
 
        // Is the 'bonus' extension installed and activated?
-       if (EXT_IS_ACTIVE("bonus", true)) {
+       if (EXT_IS_ACTIVE('bonus', true)) {
                // Check for bonus campaigns
                $result = SQL_QUERY_ESC("SELECT id, points FROM `{!_MYSQL_PREFIX!}_bonus` WHERE data_type='SEND' AND timestamp <= %s ORDER BY `id`",
                        array(bigintval($PURGE)), __FILE__, __LINE__);