From ce4c0c537e7320de66343df5aef06901e638c69f Mon Sep 17 00:00:00 2001 From: h404bi Date: Thu, 9 Mar 2017 01:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=BB=E9=A2=98=E8=AF=84?= =?UTF-8?q?=E4=BB=B7=E5=AF=B9=E5=B7=B2=E5=85=B3=E9=97=AD=E5=B8=96=E5=AD=90?= =?UTF-8?q?=E4=BB=8D=E4=BC=9A=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E6=88=B3?= =?UTF-8?q?=E6=8F=90=E5=8D=87=E4=B8=BB=E9=A2=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/module/forum/forum_misc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upload/source/module/forum/forum_misc.php b/upload/source/module/forum/forum_misc.php index d6da418..48562f5 100644 --- a/upload/source/module/forum/forum_misc.php +++ b/upload/source/module/forum/forum_misc.php @@ -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);