Minor - flint fixes

pull/3252/head
Julio Montoya 6 years ago
parent 902a47ab0b
commit 81c71006fc
  1. 4
      main/document/document.php

@ -850,11 +850,14 @@ if ($is_certificate_mode) {
// Interbreadcrumb for the current directory root path // Interbreadcrumb for the current directory root path
if (empty($document_data['parents'])) { if (empty($document_data['parents'])) {
if (isset($_GET['createdir'])) { if (isset($_GET['createdir'])) {
if ($document_data) {
$interbreadcrumb[] = [ $interbreadcrumb[] = [
'url' => $document_data['document_url'], 'url' => $document_data['document_url'],
'name' => $document_data['title'], 'name' => $document_data['title'],
]; ];
}
} else { } else {
if ($document_data) {
// Hack in order to not add the document to the breadcrumb in case it is a link // Hack in order to not add the document to the breadcrumb in case it is a link
if ($document_data['filetype'] != 'link') { if ($document_data['filetype'] != 'link') {
$interbreadcrumb[] = [ $interbreadcrumb[] = [
@ -863,6 +866,7 @@ if (empty($document_data['parents'])) {
]; ];
} }
} }
}
} else { } else {
$counter = 0; $counter = 0;
foreach ($document_data['parents'] as $document_sub_data) { foreach ($document_data['parents'] as $document_sub_data) {

Loading…
Cancel
Save