Merge pull request #13128 from owncloud/files-scan-path

Fix check if a path argument is passed to occ files:scan
This commit is contained in:
Thomas Müller 2015-01-06 18:17:19 +01:00
commit 47eb0c59e6
1 changed files with 1 additions and 1 deletions

View 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);