One more mount point fix

remotes/origin/stable6
Michael Gapczynski 2013-05-02 18:22:43 +07:00
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'];