X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmonthly%2Fmonthly_bonus.php;h=026bbd20a22cfb7e52e958403944f8c3102568ef;hb=e9d9b430aa90c0519671702ce9fe13fc497451d6;hp=1d6026ebb48cdc0622c03c5bb0984a10f859ea71;hpb=5071030af40e69ca4284642f44758964e18f5be8;p=mailer.git diff --git a/inc/monthly/monthly_bonus.php b/inc/monthly/monthly_bonus.php index 1d6026ebb4..026bbd20a2 100644 --- a/inc/monthly/monthly_bonus.php +++ b/inc/monthly/monthly_bonus.php @@ -45,13 +45,13 @@ if (!defined('__SECURITY')) { } // Do not execute when script is in CSS mode or no daily reset -if (($GLOBALS['output_mode'] == 1) || (!isResetModeEnabled())) return; +if ((getOutputMode() == 1) || (!isResetModeEnabled())) return; //* DEBUG: */ echo basename(__FILE__)."
\n"; // Get current month (2 digits) $curr = date('m', time()); -if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && ($GLOBALS['output_mode'] != 1)) { +if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && (getOutputMode() != 1)) { // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated $whereStatement1 = "WHERE `status`='CONFIRMED'"; $whereStatement2 = getConfig(('bonus_ranks'));