Skip to content

Commit

Permalink
Fixed issue when menu isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Oct 12, 2010
1 parent 1887897 commit eb34a71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/cms_helper.rb
Expand Up @@ -88,6 +88,7 @@ def webiva_search_widget # :nodoc:


def render_webiva_menu(menu,selected)
return '' unless menu
menu.items.map do |item|
<<-EOF
<li #{"class='selected'" if selected == item.identifier }>
Expand Down

0 comments on commit eb34a71

Please sign in to comment.