diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/Config/App/SetConfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Config/App/SetConfig.php b/core/Command/Config/App/SetConfig.php index aad31c85048..ae6f24e71d4 100644 --- a/core/Command/Config/App/SetConfig.php +++ b/core/Command/Config/App/SetConfig.php @@ -207,9 +207,9 @@ class SetConfig extends Base { break; case IAppConfig::VALUE_BOOL: - if (strtolower($value) === 'true') { + if (in_array(strtolower($value), ['true', '1', 'on', 'yes'])) { $valueBool = true; - } elseif (strtolower($value) === 'false') { + } elseif (in_array(strtolower($value), ['false', '0', 'off', 'no'])) { $valueBool = false; } else { throw new AppConfigIncorrectTypeException('Value is not a boolean, please use \'true\' or \'false\''); |