]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix check if a path argument is passed to occ files:scan
authorRobin Appelman <icewind@owncloud.com>
Tue, 6 Jan 2015 14:27:03 +0000 (15:27 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 6 Jan 2015 14:27:03 +0000 (15:27 +0100)
apps/files/command/scan.php

index 7cf401c7b59318dc1c11b37121c90cce6b4e76b7..87f799a01871ac3966f1fe9554f55d39e156c9f1 100644 (file)
@@ -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);