A platform for community discussion. Free, open, simple.
FIX: not checking for 0 correctly
Sama755ff7b3565
diff --git a/app/models/category.rb b/app/models/category.rbindex 24bfed6f8ec..ce12d3115f5 100644--- a/app/models/category.rb+++ b/app/models/category.rb@@ -405,7 +405,7 @@ class Category < ActiveRecord::Base# will automatically bump a single topic# if number of automatically bumped topics is smaller than thresholddef auto_bump_topic!- return false if num_auto_bump_daily.blank?+ return false if num_auto_bump_daily.to_i == 0limiter = auto_bump_limiterreturn false if !limiter.can_perform?