diff --git a/app/views/forums/_show_topics.html.erb b/app/views/forums/_show_topics.html.erb index 7a9eb4316..e61995ecc 100644 --- a/app/views/forums/_show_topics.html.erb +++ b/app/views/forums/_show_topics.html.erb @@ -26,7 +26,10 @@ <%= authoring topic.created_at, topic.author %> - 最后回复:<%=link_to_user topic.last_reply.try(:author) %> + <% author = topic.last_reply.try(:author)%> + <% if author%> + 最后回复:<%=link_to_user author %> + <% end%>