From 73d7cae6dfc5574c5b1699ba2982c7c10dfbb955 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski <mtgap@owncloud.com> Date: Thu, 2 May 2013 18:22:43 -0400 Subject: [PATCH] One more mount point fix --- lib/public/share.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/public/share.php b/lib/public/share.php index 525fe7e853..a561319e9b 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']; -- GitLab