]> git.mxchange.org Git - mailer.git/blobdiff - inc/monthly/monthly_bonus.php
Renamed function so it might be more understandable
[mailer.git] / inc / monthly / monthly_bonus.php
index 1b746af267666e101d90ba5e1802398569a52c5b..acbe511eece9fd43816d51104c6b4aa4b98feeba 100644 (file)
@@ -46,10 +46,10 @@ if (!defined('__SECURITY')) {
        return;
 }
 
-// Get current month (2 digits)
-$curr = getMonth();
+// Debug line
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Monthly reset started.');
 
-if (($curr != getConfig('last_month')) && (getConfig('bonus_ranks') > 0) && (!isCssOutputMode())) {
+if ((getConfig('bonus_ranks') > 0) && (!isCssOutputMode())) {
        // Extension 'autopurge' is inactive or purging of inactive accounts is deactivated
        $whereStatement1 = "WHERE `status`='CONFIRMED'";
 
@@ -116,5 +116,8 @@ SET
        SQL_FREERESULT($result_main);
 } // END - if
 
+// Debug line
+//* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Monthly reset ended.');
+
 // [EOF]
 ?>