Modified:
trunk/app/helpers/application_helper.rb
Log:
some fix
Modified: trunk/app/helpers/application_helper.rb
==============================================================================
--- trunk/app/helpers/application_helper.rb (original)
+++ trunk/app/helpers/application_helper.rb Sun Apr 5 05:04:26 2009
@@ -362,11 +362,11 @@
i += 1
content += link_to(category.name, {:controller => 'notes', :action
=> :show_category, :id => category.id})
content += '(' + category.articles.size.to_s
- content += ': ' + category.description if
category.description.size > 1
+ content += ': ' + category.description if ( category.description
&& category.description.length > 1)
content += ') '
if category.direct_children.size >= 1
content += ' > '
- content +=
display_categories_roots_description_sub(category.all_children)
+ content +=
display_categories_roots_description_sub(category.direct_children)
end
end
end