hide 0 post count tags by default

This commit is contained in:
albert
2013-02-20 14:34:57 -05:00
parent fa67aa1996
commit fe443a29e3

View File

@@ -406,7 +406,7 @@ class Tag < ActiveRecord::Base
q = q.where("category = ?", params[:category])
end
if params[:hide_empty] == "yes"
if params[:hide_empty] != "no"
q = q.where("post_count > 0")
end