From: Robin Appelman Date: Tue, 6 Jan 2015 14:27:03 +0000 (+0100) Subject: Fix check if a path argument is passed to occ files:scan X-Git-Tag: v8.0.0alpha2~45^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f6da758b725b644d5b4f39fb35543a7e0599dc8;p=nextcloud-server.git Fix check if a path argument is passed to occ files:scan --- 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);