修复 addviews 从 0 -> 1 过程中没有更新缓存的问题

This commit is contained in:
stackia 2017-02-12 20:48:56 +08:00
parent 5f90403eed
commit 10c9f8d504
1 changed files with 1 additions and 1 deletions

View File

@ -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 {