make sure that all expected array keys are available
This commit is contained in:
parent
69a9fe75a0
commit
bf0f39f5b4
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue