From 10c9f8d50403a9eaace69cc2942d036701322884 Mon Sep 17 00:00:00 2001 From: stackia Date: Sun, 12 Feb 2017 20:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20addviews=20=E4=BB=8E=200?= =?UTF-8?q?=20->=201=20=E8=BF=87=E7=A8=8B=E4=B8=AD=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BC=93=E5=AD=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_viewthread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/source/module/forum/forum_viewthread.php b/upload/source/module/forum/forum_viewthread.php index 350ecdd..0f3f6a3 100644 --- a/upload/source/module/forum/forum_viewthread.php +++ b/upload/source/module/forum/forum_viewthread.php @@ -1034,7 +1034,7 @@ function viewthread_updateviews($tableid) { if(!$_G['setting']['preventrefresh'] || $_G['cookie']['viewid'] != 'tid_'.$_G['tid']) { if(!$tableid && $_G['setting']['optimizeviews']) { - if($_G['forum_thread']['addviews']) { + if(isset($_G['forum_thread']['addviews'])) { if($_G['forum_thread']['addviews'] < 100) { C::t('forum_threadaddviews')->update_by_tid($_G['tid']); } else {