// Get current month (2 digits)
$curr = date("m", time());
-if (($curr != $_CONFIG['bonus_month']) && ($_CONFIG['bonus_ranks'] > 0) && ($CSS != 1))
+if (($curr != $_CONFIG['last_month']) && ($_CONFIG['bonus_ranks'] > 0) && ($CSS != 1))
{
// Extension "autopurge" is inactive or purging of inactive accounts is deactivated
$whereStatement1 = "WHERE status='CONFIRMED'";
// Free memory
SQL_FREERESULT($result_main);
-
- // Finally update database and config array
- $_CONFIG['bonus_month'] = $curr;
- $result_update = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET last_bonus_month='%s' WHERE config=0 LIMIT 1",
- array($curr), __FILE__, __LINE__);
-
- // Destroy cache
}
+
//
?>