mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 14:54:02 -05:00
Merge pull request #19886 from nextcloud/backport/19861/stable18
[stable18] Don't break when one remote share is down
This commit is contained in:
commit
cbdff5c816
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue