summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Command
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-11-27 15:20:23 +0100
committerRobin Appelman <robin@icewind.nl>2018-11-27 15:20:23 +0100
commit56c777f71594b580f0c069bb1125db0023cd2e7a (patch)
treea3a50cec89dbfbb89546c32b819d66bcabe14f44 /apps/files_external/lib/Command
parentc8cab74404feb6d48137bc6dba48192b9c4850dd (diff)
downloadnextcloud-server-56c777f71594b580f0c069bb1125db0023cd2e7a.tar.gz
nextcloud-server-56c777f71594b580f0c069bb1125db0023cd2e7a.zip
Fix cannot set 0 as value on files_external through OCC command
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Command')
-rw-r--r--apps/files_external/lib/Command/Config.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Command/Config.php b/apps/files_external/lib/Command/Config.php
index 375181d35e5..87d11cbdfa0 100644
--- a/apps/files_external/lib/Command/Config.php
+++ b/apps/files_external/lib/Command/Config.php
@@ -74,7 +74,7 @@ class Config extends Base {
}
$value = $input->getArgument('value');
- if ($value) {
+ if ($value !== null) {
$this->setOption($mount, $key, $value, $output);
} else {
$this->getOption($mount, $key, $output);