소스 검색

! 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);