]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_birthday.php
Fix for if user account is missing
[mailer.git] / inc / reset / reset_birthday.php
index 2ca54a1cbe9d94e9728a3f855a5699d3d05170d4..9f02208566e3b5e628f51b0fb316f3383b2f00dc 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
        // Do not execute when script is in CSS mode
        return;
 } elseif (!isExtensionActive('birthday')) {
@@ -55,7 +55,7 @@ $year  = getYear();
 
 // Shall I include only active members?
 $add = '%s'; $value = '';
-if ((getConfig('birthday_active')) && (isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getConfig('ap_inactive_since') > 0)) {
+if ((getConfig('birthday_active')) && (isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getApInactiveSince() > 0)) {
        $add = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
 } // END - if