浏览代码

! Number of posts in a topic with moderated posts is now set to num_replies+1 for guests fixing the wrong index created previously [Bug 4885]

emanuele 13 年之前
父节点
当前提交
20b6be98be
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Sources/Display.php

+ 2 - 0
Sources/Display.php

@@ -196,6 +196,8 @@ function Display()
 
 		$context['total_visible_posts'] = $context['num_replies'] + $myUnapprovedPosts + ($topicinfo['approved'] ? 1 : 0);
 	}
+	elseif ($user_info['is_guest'])
+		$context['total_visible_posts'] = $context['num_replies'] + ($topicinfo['approved'] ? 1 : 0);
 	else
 		$context['total_visible_posts'] = $context['num_replies'] + $topicinfo['unapproved_posts'] + ($topicinfo['approved'] ? 1 : 0);