Merge pull request !61 from h404bi/master

This commit is contained in:
h404bi 2017-03-09 10:54:13 +08:00 committed by Discuz!
commit 2ed1b98ea1
1 changed files with 3 additions and 1 deletions

View File

@ -1605,7 +1605,9 @@ if($_GET['action'] == 'votepoll' && submitcheck('pollsubmit', 1)) {
$fieldarr['heats'] = 0;
$fieldarr['recommends'] = $_G['group']['allowrecommend'];
C::t('forum_thread')->increase($_G['tid'], $fieldarr);
C::t('forum_thread')->update($_G['tid'], array('lastpost' => TIMESTAMP));
if(empty($thread['closed'])) {
C::t('forum_thread')->update($_G['tid'], array('lastpost' => TIMESTAMP));
}
C::t('forum_memberrecommend')->insert(array('tid'=>$_G['tid'], 'recommenduid'=>$_G['uid'], 'dateline'=>$_G['timestamp']));
dsetcookie('recommend', 1, 43200);