FIX: Issues that didn't show up originally

This commit is contained in:
Robin Ward 2013-05-28 15:56:46 -04:00
parent 264dd65410
commit ee319ea7f7
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ class CategoryList
find_relevant_topics
find_categories
prune_empty
add_uncategorized
find_user_data
end
@ -93,7 +95,7 @@ class CategoryList
@categories.insert(insert_at || @categories.size, uncategorized)
end
if @all_topics.present?
if @all_topics.present? && uncategorized.present?
uncategorized.displayable_topics = uncategorized_topics
@all_topics << uncategorized_topics
@all_topics.flatten!