Explorar el Código

! 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 hace 13 años
padre
commit
20b6be98be
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);