diff options
Diffstat (limited to 'lib/public/share.php')
-rw-r--r-- | lib/public/share.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index e0aedf35694..29f9a1f0953 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -991,7 +991,10 @@ class Share { $row['path'] = '/Shared/'.basename($row['path']); } else { if (!isset($mounts[$row['storage']])) { - $mounts[$row['storage']] = \OC\Files\Mount::findByNumericId($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']; |