Merge pull request !61 from h404bi/master
This commit is contained in:
commit
2ed1b98ea1
|
@ -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);
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue