Skip to content

Commit

Permalink
Bugfix: taxa/show was broken when amphibiaweb had nil content.
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Feb 1, 2012
1 parent 37a9ed3 commit 445808e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/taxa/_amphibiaweb.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<% end %>
<% end %>
<%- content = @xml.at('lannoo').try(:inner_text) if content.strip.blank? -%>
<% if content.strip.blank? -%>
<% if content.to_s.strip.blank? -%>
<p class="description">
AmphibiaWeb doesn't have any information about this species.
<%= link_to_function "Try Wikipedia?", "tryWikipedia()", 'data-loading-click' => true %>
Expand Down

0 comments on commit 445808e

Please sign in to comment.