Browse Source

Fix check if a path argument is passed to occ files:scan

tags/v8.0.0alpha2
Robin Appelman 9 years ago
parent
commit
5f6da758b7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files/command/scan.php

+ 1
- 1
apps/files/command/scan.php 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);

Loading…
Cancel
Save