summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-06 18:17:19 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-06 18:17:19 +0100
commit47eb0c59e6c1514638cb8695d2b92ff41e4bf2e1 (patch)
tree940367a29a610f0c3702e83faec770f21cc6dac2
parentfe4592937a7139164eeb0b8131f6e8ba559eaa67 (diff)
parent5f6da758b725b644d5b4f39fb35543a7e0599dc8 (diff)
downloadnextcloud-server-47eb0c59e6c1514638cb8695d2b92ff41e4bf2e1.tar.gz
nextcloud-server-47eb0c59e6c1514638cb8695d2b92ff41e4bf2e1.zip
Merge pull request #13128 from owncloud/files-scan-path
Fix check if a path argument is passed to occ files:scan
-rw-r--r--apps/files/command/scan.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php
index 7cf401c7b59..87f799a0187 100644
--- a/apps/files/command/scan.php
+++ b/apps/files/command/scan.php
@@ -77,7 +77,7 @@ class Scan extends Command {
protected function execute(InputInterface $input, OutputInterface $output) {
$path = $input->getOption('path');
- if ($path !== false) {
+ if ($path) {
$path = '/'.trim($path, '/');
list (, $user, ) = explode('/', $path, 3);
$users = array($user);