Commit 6f28dc6200e2a5e27c92d7cc478ab9a85ea6b2e2

Authored by Victor Costa
2 parents a08a509c 24c27953

Merge branch 'hotfixes' into stable

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/content_viewer/view_page.html.erb
@@ -72,7 +72,7 @@ @@ -72,7 +72,7 @@
72 72
73 <div class="comments" id="comments_list"> 73 <div class="comments" id="comments_list">
74 74
75 - <% if @page.accept_comments? || @comments_count > 0 %> 75 + <% if @page.accept_comments? || (@comments_count.present? && @comments_count > 0) %>
76 <h3 <%= 'class="no-comments-yet"' if @comments_count == 0 %>> 76 <h3 <%= 'class="no-comments-yet"' if @comments_count == 0 %>>
77 <%= display_number_of_comments(@comments_count) %> 77 <%= display_number_of_comments(@comments_count) %>
78 </h3> 78 </h3>