]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix undefined index for share mount point retrieval
authorMichael Gapczynski <mtgap@owncloud.com>
Wed, 22 May 2013 00:21:19 +0000 (20:21 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Wed, 22 May 2013 00:21:19 +0000 (20:21 -0400)
lib/public/share.php

index a561319e9bdaa247b92a244a0f98754df63f7674..f9d3d810200390cd1dc1c34f51d368a0dacf6875 100644 (file)
@@ -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']]) {