diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-21 14:14:32 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-06-23 12:08:42 +0200 |
commit | fbae6ffa98d54d7a1e3f0bcfbdaf9d46f9078bbb (patch) | |
tree | d7f761ddddd9114adc68b465af4e73c99bf121b6 /core/Command | |
parent | de82d4f67ca8d12a0209598f9cdd55302d546524 (diff) | |
download | nextcloud-server-fbae6ffa98d54d7a1e3f0bcfbdaf9d46f9078bbb.tar.gz nextcloud-server-fbae6ffa98d54d7a1e3f0bcfbdaf9d46f9078bbb.zip |
Fix importing float value
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Config/Import.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Config/Import.php b/core/Command/Config/Import.php index a823c8133b9..227c909038c 100644 --- a/core/Command/Config/Import.php +++ b/core/Command/Config/Import.php @@ -169,8 +169,8 @@ class Import extends Command implements CompletionAwareInterface { * @param string $configName */ protected function checkTypeRecursively($configValue, $configName) { - if (!is_array($configValue) && !is_bool($configValue) && !is_int($configValue) && !is_string($configValue) && !is_null($configValue)) { - throw new \UnexpectedValueException('Invalid system config value for "' . $configName . '". Only arrays, bools, integers, strings and null (delete) are allowed.'); + if (!is_array($configValue) && !is_bool($configValue) && !is_int($configValue) && !is_string($configValue) && !is_null($configValue) && !is_float($configValue)) { + throw new \UnexpectedValueException('Invalid system config value for "' . $configName . '". Only arrays, bools, integers, floats, strings and null (delete) are allowed.'); } if (is_array($configValue)) { foreach ($configValue as $key => $value) { |