hide 0 post count tags by default
This commit is contained in:
@@ -406,7 +406,7 @@ class Tag < ActiveRecord::Base
|
|||||||
q = q.where("category = ?", params[:category])
|
q = q.where("category = ?", params[:category])
|
||||||
end
|
end
|
||||||
|
|
||||||
if params[:hide_empty] == "yes"
|
if params[:hide_empty] != "no"
|
||||||
q = q.where("post_count > 0")
|
q = q.where("post_count > 0")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user