diff --git a/app/views/praise_tread/_praise.html.erb b/app/views/praise_tread/_praise.html.erb
index 26e5900aa..dfd1011db 100644
--- a/app/views/praise_tread/_praise.html.erb
+++ b/app/views/praise_tread/_praise.html.erb
@@ -2,12 +2,12 @@
赞
<% num = activity.praise_tread_cache ? activity.praise_tread_cache.praise_num : 0 %>
- <%= num > 0 ? "(#{num})" : "" %>
+ <%= (num.nil? ? 0 : num) > 0 ? "(#{(num.nil? ? 0 : num)})" : "" %>
<% else %>
已赞
<% num = activity.praise_tread_cache ? activity.praise_tread_cache.praise_num : 0 %>
- <%= num > 0 ? "(#{num})" : "" %>
+ <%= (num.nil? ? 0 : num) > 0 ? "(#{(num.nil? ? 0 : num)})" : "" %>
<% end %>
\ No newline at end of file