summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-03 11:35:06 -0700
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-03 11:35:06 -0700
commit96b1e54d4abf4d4dfe0e2e58d161c070d0ec7cdc (patch)
tree27f51fc565c1a4379d794bed18b255f4e7a3a77e /lib
parent1f8e92019e9f80552429a4cbc5dab82437a0d31f (diff)
parent7a0c592f935268b515e6b16b4119a5088ebfd064 (diff)
downloadnextcloud-server-96b1e54d4abf4d4dfe0e2e58d161c070d0ec7cdc.tar.gz
nextcloud-server-96b1e54d4abf4d4dfe0e2e58d161c070d0ec7cdc.zip
Merge pull request #3444 from owncloud/share-fix
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 6c93139b107..81f5515bb4b 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -1009,7 +1009,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']]) {