From 7a0c592f935268b515e6b16b4119a5088ebfd064 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Tue, 21 May 2013 20:21:19 -0400 Subject: [PATCH] Fix undefined index for share mount point retrieval --- lib/public/share.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/share.php b/lib/public/share.php index a561319e9b..f9d3d81020 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -877,7 +877,7 @@ class Share { if (!isset($mounts[$row['storage']])) { $mountPoints = \OC\Files\Filesystem::getMountByNumericId($row['storage']); if (is_array($mountPoints)) { - $mounts[$row['storage']] = $mountPoints[key($mountPoints)]; + $mounts[$row['storage']] = current($mountPoints); } } if ($mounts[$row['storage']]) {