[ticket/500] Show correct number of replies in news and announcements

B3P-500
This commit is contained in:
Marc Alexander
2015-03-09 21:42:27 +01:00
parent c3e1128ad6
commit 131b7a691d
3 changed files with 19 additions and 2 deletions

View File

@@ -321,8 +321,8 @@ class fetch_posts
'icon_id' => $row['icon_id'],
'topic_status' => $row['topic_status'],
'forum_id' => $row['forum_id'],
'topic_replies' => $row['topic_posts_approved'] + $row['topic_posts_unapproved'] + $row['topic_posts_softdeleted'],
'topic_replies_real' => $row['topic_posts_approved'],
'topic_replies' => $row['topic_posts_approved'] + $row['topic_posts_unapproved'] + $row['topic_posts_softdeleted'] - 1,
'topic_replies_real' => $row['topic_posts_approved'] - 1,
'topic_time' => $this->user->format_date($row['post_time']),
'topic_last_post_time' => $row['topic_last_post_time'],
'topic_title' => $row['topic_title'],