aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-05-21 20:21:19 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-05-21 20:21:19 -0400
commit7a0c592f935268b515e6b16b4119a5088ebfd064 (patch)
tree51ae61e29a829d16f6b94334ac01394c59ca850e /lib
parente2444ec9c5a7c36f7cfaa200387fb8d16e5dedb1 (diff)
downloadnextcloud-server-7a0c592f935268b515e6b16b4119a5088ebfd064.tar.gz
nextcloud-server-7a0c592f935268b515e6b16b4119a5088ebfd064.zip
Fix undefined index for share mount point retrieval
Diffstat (limited to 'lib')
-rw-r--r--lib/public/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/share.php b/lib/public/share.php
index a561319e9bd..f9d3d810200 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']]) {