A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / autopurge / purge-mails.php
index 389c9279dd3fe2f77a5a84bb134f6116818ece6c..a592cc5a7d736c82e8c834fb445997ffeef2fc51 100644 (file)
@@ -43,13 +43,13 @@ if (!defined('__SECURITY')) {
 } // 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
 
 // Search for mails from deleted members?
-if (getConfig('ap_del_mails') == "Y") {
+if (getConfig('ap_del_mails') == 'Y') {
        // Okay, let's check for them...
        $since = getConfig(('ap_dm_timeout'));
        $result_mails = SQL_QUERY_ESC("SELECT sender
@@ -122,9 +122,9 @@ ORDER BY sender ASC",
        SQL_FREERESULT($result_mails);
 
        // Do we have deleted mails and the admin want's to receive a notification
-       if (($DELETED > 0) && (getConfig('ap_dm_notify') == "Y")) {
+       if (($DELETED > 0) && (getConfig('ap_dm_notify') == 'Y')) {
                // Send out email to admin
-               SEND_ADMIN_NOTIFICATION(getMessage('AUTOPURGE_ADMIN_DEL_MAILS_SUBJECT'), "admin_autopurge_del_mails", $DELETED, "");
+               SEND_ADMIN_NOTIFICATION(getMessage('AUTOPURGE_ADMIN_DEL_MAILS_SUBJECT'), "admin_autopurge_del_mails", $DELETED, '');
        } // END - if
 }