diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-05-02 18:22:43 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-05-02 18:22:43 -0400 |
commit | 73d7cae6dfc5574c5b1699ba2982c7c10dfbb955 (patch) | |
tree | 895e84fcb0c0e2ad4301e2e9ccb1119c09a36a38 /lib/public/share.php | |
parent | 7039421efc80f3551026d3f16ba6887e7be02234 (diff) | |
download | nextcloud-server-73d7cae6dfc5574c5b1699ba2982c7c10dfbb955.tar.gz nextcloud-server-73d7cae6dfc5574c5b1699ba2982c7c10dfbb955.zip |
One more mount point fix
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 525fe7e8533..a561319e9bd 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']; |