Selaa lähdekoodia

! 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 vuotta sitten
vanhempi
commit
20b6be98be
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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);