Merge pull request !57 from Hmily_LCG/fix—threadpartake

This commit is contained in:
Hmily_LCG 2017-03-08 15:19:32 +08:00 committed by Discuz!
commit ce0a3d6146
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);
}