Permalink
Browse files

Be a little safer and check that repository.description is not nil be…

…fore using it.
  • Loading branch information...
1 parent 99fb415 commit 3ea31e9e1360e514adcea04141d7ebb2a7832de4 @icefox committed Mar 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/app/views/repositories/_repositorytopbar.html.erb
@@ -11,7 +11,7 @@
<% } %>
<br />
-<% if !@repository.description.empty? -%>
+<% if @repository.description && !@repository.description.empty? -%>
<%= t('repository.description') -%>: <%=h @repository.description %><br />
<% end -%>
<%

0 comments on commit 3ea31e9

Please sign in to comment.