Commit 7f938b27 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4490 (Breadcrumb segment may not show)

parent c1244b89
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -512,12 +512,15 @@ function breadcrumbs($show_self = true)
    // Substitutions
    if ((addon_installed('breadcrumbs')) && (function_exists('xml_parser_create'))) {
        require_code('breadcrumbs');
        if ($GLOBALS['BREADCRUMB_SET_SELF'] !== null) {
        $needs_pop = ($GLOBALS['BREADCRUMB_SET_SELF'] !== null);
        if ($needs_pop) {
            $BREADCRUMB_SET_PARENTS[] = array(null, $GLOBALS['BREADCRUMB_SET_SELF']);
        }
        $BREADCRUMB_SET_PARENTS = load_breadcrumb_substitutions($BREADCRUMB_SET_PARENTS);
        if ($needs_pop) {
            array_pop($BREADCRUMB_SET_PARENTS);
        }
    }

    // Render
    if ($BREADCRUMBS === null) {