One more mount point fix

This commit is contained in:
Michael Gapczynski 2013-05-02 18:22:43 -04:00
parent 7039421efc
commit 73d7cae6df

View file

@ -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'];