summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-11-18 22:28:48 +0100
committerLukas Reschke <lukas@owncloud.com>2015-11-18 22:28:48 +0100
commit048ad25416f3ca697d48af320b6b2a97352f0670 (patch)
treee18177221d16874fccb560b204fc5b06db131c2e
parentda5285dc23dc88d8f570409a8d7ed1296b95f407 (diff)
downloadnextcloud-server-048ad25416f3ca697d48af320b6b2a97352f0670.tar.gz
nextcloud-server-048ad25416f3ca697d48af320b6b2a97352f0670.zip
Use proper variable
`$shares` is not defined. Introduced with https://github.com/owncloud/core/commit/c3e7d324c5e61eb087fb2ea5102d332f9f08db3d and thus also in stable8.2
-rw-r--r--apps/files_sharing/api/remote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/api/remote.php b/apps/files_sharing/api/remote.php
index 41ebb6e2eab..fb692f8a9a6 100644
--- a/apps/files_sharing/api/remote.php
+++ b/apps/files_sharing/api/remote.php
@@ -98,7 +98,7 @@ class Remote {
*/
private static function extendShareInfo($share) {
$view = new \OC\Files\View('/' . \OC_User::getUser() . '/files/');
- $info = $view->getFileInfo($shares['mountpoint']);
+ $info = $view->getFileInfo($share['mountpoint']);
$share['mimetype'] = $info->getMimetype();
$share['mtime'] = $info->getMtime();