diff --git a/library/includes/cron/jobs/tr_cleanup_and_dlstat.php b/library/includes/cron/jobs/tr_cleanup_and_dlstat.php index 3b4283054..17c5f8db6 100644 --- a/library/includes/cron/jobs/tr_cleanup_and_dlstat.php +++ b/library/includes/cron/jobs/tr_cleanup_and_dlstat.php @@ -93,6 +93,8 @@ if ($tr_cfg['update_dlstat']) "); // Update TOTAL user's dlstat + // This is not needed if ocelot enabled. It's important. + if(!$bb_cfg['ocelot']['enabled']){ DB()->query(" UPDATE ". BB_BT_USERS ." u, @@ -108,7 +110,7 @@ if ($tr_cfg['update_dlstat']) u.up_bonus_today = u.up_bonus_today + ub.bonus_add WHERE u.user_id = ub.user_id "); - + } // Delete from dl_list what exists in BUF but not exsits in NEW DB()->query(" DELETE dl @@ -150,4 +152,4 @@ DB()->query(" ". BB_BT_LAST_USERSTAT ." TO ". OLD_BB_BT_LAST_USERSTAT .", ". NEW_BB_BT_LAST_USERSTAT ." TO ". BB_BT_LAST_USERSTAT ." "); -DB()->query("DROP TABLE IF EXISTS ". NEW_BB_BT_LAST_USERSTAT .", ". OLD_BB_BT_LAST_USERSTAT); \ No newline at end of file +DB()->query("DROP TABLE IF EXISTS ". NEW_BB_BT_LAST_USERSTAT .", ". OLD_BB_BT_LAST_USERSTAT);