A lot calls saved, expression language rewritten:
[mailer.git] / inc / autopurge / purge-mails.php
index 765c775836f6ce8df1a1092633d929ba85e96679..d605fc33a99c83386ff1cb87355d6fc63a952e11 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (getConfig('auto_purge_active') != 'Y') || (getConfig('ap_del_mails') != 'Y')) {
+if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive()) || (getConfig('ap_del_mails') != 'Y')) {
        // Abort here
        return false;
 } // END - if