From a755ff7b35654a003270cd8167f3cacc827e5c52 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 19 Jul 2018 07:33:30 +1000 Subject: [PATCH] FIX: not checking for 0 correctly 0.blank? == false --- app/models/category.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/category.rb b/app/models/category.rb index 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 threshold def auto_bump_topic! - return false if num_auto_bump_daily.blank? + return false if num_auto_bump_daily.to_i == 0 limiter = auto_bump_limiter return false if !limiter.can_perform?