diff --git a/lib_static/open_project/feature_decisions.rb b/lib_static/open_project/feature_decisions.rb index 2198e28ab9..73b4f2b461 100644 --- a/lib_static/open_project/feature_decisions.rb +++ b/lib_static/open_project/feature_decisions.rb @@ -74,7 +74,7 @@ module OpenProject def define_flag_methods(flag_name) define_singleton_method "#{flag_name}_active?" do - Setting.send("feature_#{flag_name}_active?") + Setting.exists?("feature_#{flag_name}_active") && Setting.send("feature_#{flag_name}_active?") end end