aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command/Config.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/Command/Config.php')
-rw-r--r--apps/files_external/lib/Command/Config.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_external/lib/Command/Config.php b/apps/files_external/lib/Command/Config.php
index c7fd63c5e43..f58b1561e68 100644
--- a/apps/files_external/lib/Command/Config.php
+++ b/apps/files_external/lib/Command/Config.php
@@ -93,8 +93,8 @@ class Config extends Base {
$value = $mount->getBackendOption($key);
}
if (!is_string($value) && json_decode(json_encode($value)) === $value) { // show bools and objects correctly
- $value = json_encode($value);
- }
+ $value = json_encode($value);
+ }
$output->writeln($value);
}
@@ -106,9 +106,9 @@ class Config extends Base {
*/
protected function setOption(StorageConfig $mount, $key, $value, OutputInterface $output) {
$decoded = json_decode($value, true);
- if (!is_null($decoded) && json_encode($decoded) === $value) {
- $value = $decoded;
- }
+ if (!is_null($decoded) && json_encode($decoded) === $value) {
+ $value = $decoded;
+ }
if ($key === 'mountpoint' || $key === 'mount_point') {
$mount->setMountPoint($value);
} else {