Browse Source

Fixed state_check().

Martin Edenhofer 9 years ago
parent
commit
848adb944a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/models/setting.rb

+ 1 - 2
app/models/setting.rb

@@ -141,8 +141,7 @@ reset config setting to default
     return if !state
     return if state == false
 
-    return if state.respond_to?('has_key?')
-    return if state.key?(:value)
+    return if state.respond_to?('has_key?') && state.key?(:value)
 
     self.state = { value: state }
   end