Преглед на файлове

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