mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix importing float value
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
de82d4f67c
commit
fbae6ffa98
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue