fix error caused by no title saved.

This commit is contained in:
BoHung Chiu 2020-04-23 16:52:53 +08:00
parent 9774ddc17b
commit 8491ec8283
1 changed files with 2 additions and 2 deletions

View File

@ -24,9 +24,9 @@
</td>
<td>
<% if b.expired? || (b.category.disable rescue false)%>
<%= b.title.html_safe %>
<%= b.title.to_s.html_safe %>
<% else %>
<a href="<%= page_for_bulletin(b) %>" target="_blank"><%= b.title.html_safe %></a>
<a href="<%= page_for_bulletin(b) %>" target="_blank"><%= b.title.to_s.html_safe %></a>
<% end %>
<% if b.expired? %>