mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
One more mount point fix
This commit is contained in:
parent
7039421efc
commit
73d7cae6df
1 changed files with 4 additions and 1 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue