Merge pull request #19861 from nextcloud/bugfix/noid/load-remote-shares-also-when-one-is-down
Don't break when one remote share is down
This commit is contained in:
commit
24d0fb9fcd
|
@ -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