Commit 96fb6748 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) pgtitle, breadcrumbs avoid wrong type in array_reverse

(cherry picked from commit 3b8a3826)
parent 97890f21
......@@ -38,7 +38,14 @@ $menuBreadcrumbs = $menu->getBreadcrumbs();
$g['theme'] = get_current_theme();
$pagetitle = gentitle(array_reverse(count($menuBreadcrumbs) ? $menuBreadcrumbs : $pgtitle), ' | ');
if (count($menuBreadcrumbs)) {
$menuBreadcrumbs_parts = array_reverse($menuBreadcrumbs);
} elseif (!empty($pgtitle)) {
$menuBreadcrumbs_parts = $pgtitle;
} else {
$menuBreadcrumbs_parts = array();
}
$pagetitle = gentitle($menuBreadcrumbs_parts, ' | ');
$pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system']['domain']);
?><!doctype html>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment