Fix undefined index for share mount point retrieval

remotes/origin/stable6
Michael Gapczynski 2013-05-21 20:21:19 +07:00
parent e2444ec9c5
commit 7a0c592f93
1 changed files with 1 additions and 1 deletions

@ -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']]) {