mirror of
https://github.com/flarum/framework.git
synced 2025-04-02 07:01:13 +08:00

Since some boolean settings might be stored as string "0" or "1", the previous system no longer works, and it always sets the switch to true. The "no setting" check has been changed to reference `undefined`, so now the switch will only be defaulted to `true` if the setting truly hasn't been set. Fixes https://github.com/flarum/core/issues/2574