diff --git a/upload/source/include/cron/cron_cleanup_daily.php b/upload/source/include/cron/cron_cleanup_daily.php index 0a71481..9c5922a 100644 --- a/upload/source/include/cron/cron_cleanup_daily.php +++ b/upload/source/include/cron/cron_cleanup_daily.php @@ -27,8 +27,8 @@ C::t('forum_postcache')->delete_by_dateline(TIMESTAMP-86400); C::t('forum_newthread')->delete_by_dateline(TIMESTAMP-1296000); C::t('common_seccheck')->truncate(); -if($settingnew['heatthread']['type'] == 2 && $settingnew['heatthread']['period']) { - $partakeperoid = 86400 * $settingnew['heatthread']['period']; +if($_G['setting']['heatthread']['type'] == 2 && $_G['setting']['heatthread']['period']) { + $partakeperoid = 86400 * $_G['setting']['heatthread']['period']; C::t('forum_threadpartake')->delete($_G[timestamp]-$partakeperoid); }