From bf0f39f5b4d1b4cc3e91015b4fcaa0231ff0e2a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Tue, 4 Dec 2012 14:52:59 +0100 Subject: [PATCH] make sure that all expected array keys are available --- apps/files_sharing/public.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index ac247368738..71c18380a3b 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -233,7 +233,7 @@ if ($linkItem) { $breadcrumb[] = array('dir' => '/', 'name' => basename($basePath)); //add subdir breadcrumbs - foreach (explode('/', urldecode($_GET['path'])) as $i) { + foreach (explode('/', urldecode($getPath)) as $i) { if ($i != '') { $pathtohere .= '/'.$i; $breadcrumb[] = array('dir' => $pathtohere, 'name' => $i); @@ -251,6 +251,7 @@ if ($linkItem) { $folder = new OCP\Template('files', 'index', ''); $folder->assign('fileList', $list->fetchPage(), false); $folder->assign('breadcrumb', $breadcrumbNav->fetchPage(), false); + $folder->assign('dir', basename($dir)); $folder->assign('isCreatable', false); $folder->assign('permissions', 0); $folder->assign('files', $files); -- 2.39.5