diff --git a/upload/source/module/forum/forum_viewthread.php b/upload/source/module/forum/forum_viewthread.php index b550d123d2748746b80c3fb1056bbb5f01a7299d..8d356c40bcf7337bd1aeef148ebfc3ee1f0864d3 100644 --- a/upload/source/module/forum/forum_viewthread.php +++ b/upload/source/module/forum/forum_viewthread.php @@ -432,6 +432,7 @@ if(empty($_GET['viewpid'])) { } $temp_reply = $_G['forum_thread']['replies']; $_G['forum_thread']['replies'] = $countrushpost = max(0, count($rushids) - 1); + $countrushpost = max(0, count($rushids)); $rushids = array_slice($rushids, ($page - 1) * $_G['ppp'], $_G['ppp']); foreach(C::t('forum_post')->fetch_all_by_tid_position($posttableid, $_G['tid'], $rushids) as $post) { $postarr[$post['position']] = $post;