Minor - flint fixes

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

@ -850,18 +850,22 @@ if ($is_certificate_mode) {
// Interbreadcrumb for the current directory root path
if (empty($document_data['parents'])) {
if (isset($_GET['createdir'])) {
$interbreadcrumb[] = [
'url' => $document_data['document_url'],
'name' => $document_data['title'],
];
} else {
// 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) {
$interbreadcrumb[] = [
'url' => '#',
'url' => $document_data['document_url'],
'name' => $document_data['title'],
];
}
} else {
if ($document_data) {
// Hack in order to not add the document to the breadcrumb in case it is a link
if ($document_data['filetype'] != 'link') {
$interbreadcrumb[] = [
'url' => '#',
'name' => $document_data['title'],
];
}
}
}
} else {
$counter = 0;

Loading…
Cancel
Save