Don't break when one remote share is down
getFileInfo can also return false Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5a8c7854d6
commit
886293fdcc
|
@ -117,6 +117,10 @@ class RemoteController extends OCSController {
|
|||
$view = new \OC\Files\View('/' . \OC_User::getUser() . '/files/');
|
||||
$info = $view->getFileInfo($share['mountpoint']);
|
||||
|
||||
if ($info === false) {
|
||||
return $share;
|
||||
}
|
||||
|
||||
$share['mimetype'] = $info->getMimetype();
|
||||
$share['mtime'] = $info->getMTime();
|
||||
$share['permissions'] = $info->getPermissions();
|
||||
|
|
Loading…
Reference in New Issue