summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-06-23 17:39:45 +0200
committerGitHub <noreply@github.com>2022-06-23 17:39:45 +0200
commit253ae64fafc214c7fa5e06c3f7b0d5b1c017d79b (patch)
tree6edf8c6e7945b3c851bfc2b6da2f696763161004 /core
parent55bad5a1bbda045bfdc46b38cd669c3eec9259c1 (diff)
parentfbae6ffa98d54d7a1e3f0bcfbdaf9d46f9078bbb (diff)
downloadnextcloud-server-253ae64fafc214c7fa5e06c3f7b0d5b1c017d79b.tar.gz
nextcloud-server-253ae64fafc214c7fa5e06c3f7b0d5b1c017d79b.zip
Merge pull request #32957 from nextcloud/fix/import-float
Fix importing float value
Diffstat (limited to 'core')
-rw-r--r--core/Command/Config/Import.php4
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) {