Fix check if a path argument is passed to occ files:scan
This commit is contained in:
parent
622c4cf779
commit
5f6da758b7
|
@ -77,7 +77,7 @@ class Scan extends Command {
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||||
$path = $input->getOption('path');
|
$path = $input->getOption('path');
|
||||||
if ($path !== false) {
|
if ($path) {
|
||||||
$path = '/'.trim($path, '/');
|
$path = '/'.trim($path, '/');
|
||||||
list (, $user, ) = explode('/', $path, 3);
|
list (, $user, ) = explode('/', $path, 3);
|
||||||
$users = array($user);
|
$users = array($user);
|
||||||
|
|
Loading…
Reference in New Issue