FIX: going to PM directly results in 500 error
regressed 1 day ago.
This commit is contained in:
parent
d46bf2430c
commit
940be8261a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue