]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_bonus.php
More fixes for 'theme vs. extensions'
[mailer.git] / inc / reset / reset_bonus.php
index cefffd4f3f1053904668b99b82d6fbef1e5bda4c..96718ec80e595496a3789506452b5579250b0d41 100644 (file)
@@ -43,8 +43,11 @@ if (!defined('__SECURITY')) {
 if (($CSS == 1) || (!defined('__DAILY_RESET'))) return;
 //* DEBUG: */ echo basename(__FILE__)."<br />\n";
 
+// Purge expired entries in _bonus_turbo
+BONUS_PURGE_EXPIRED_TURBO_BONUS();
+
 // Reset accounts
-$result = SQL_QUERY("UPDATE "._MYSQL_PREFIX."_user_data SET turbo_bonus=0, login_bonus=0, bonus_order=0, bonus_stats=0, bonus_ref=0",
+$result = SQL_QUERY("UPDATE `"._MYSQL_PREFIX."_user_data` SET turbo_bonus=0, login_bonus=0, bonus_order=0, bonus_stats=0, bonus_ref=0",
  __FILE__, __LINE__);
 
 //