修复cron自动清理热度表pre_forum_threadpartake无效的问题。

This commit is contained in:
Hmily_LCG 2017-03-08 10:33:45 +08:00
parent 96364cb1b1
commit d6dd434adb
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}