FIX: going to PM directly results in 500 error

regressed 1 day ago.
This commit is contained in:
Sam 2015-07-23 09:57:27 +10:00
parent d46bf2430c
commit 940be8261a
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class TopicView
def page_title
title = @topic.title
unless @topic.category_id == SiteSetting.uncategorized_category_id
if @topic.category_id != SiteSetting.uncategorized_category_id && @topic.category_id && @topic.category
title += " - #{topic.category.name}"
end
title