diff --git a/lib/public/share.php b/lib/public/share.php index 525fe7e853310e18dfa7f53a793597f04b9222fb..a561319e9bdaa247b92a244a0f98754df63f7674 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -875,7 +875,10 @@ class Share { $row['path'] = '/Shared/'.basename($row['path']); } else { if (!isset($mounts[$row['storage']])) { - $mounts[$row['storage']] = \OC\Files\Filesystem::getMountByNumericId($row['storage']); + $mountPoints = \OC\Files\Filesystem::getMountByNumericId($row['storage']); + if (is_array($mountPoints)) { + $mounts[$row['storage']] = $mountPoints[key($mountPoints)]; + } } if ($mounts[$row['storage']]) { $path = $mounts[$row['storage']]->getMountPoint().$row['path'];