Skip to content

Commit

Permalink
Merge pull request #19861 from nextcloud/bugfix/noid/load-remote-shar…
Browse files Browse the repository at this point in the history
…es-also-when-one-is-down

Don't break when one remote share is down
  • Loading branch information
nickvergessen authored Mar 11, 2020
2 parents 56c5a16 + 886293f commit 24d0fb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/files_sharing/lib/Controller/RemoteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ private static function extendShareInfo($share) {
$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();
Expand Down

0 comments on commit 24d0fb9

Please sign in to comment.