--- loncom/interface/lonhtmlcommon.pm 2009/12/07 17:30:01 1.253.2.1 +++ loncom/interface/lonhtmlcommon.pm 2009/12/08 05:19:08 1.253.2.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.253.2.1 2009/12/07 17:30:01 raeburn Exp $ +# $Id: lonhtmlcommon.pm,v 1.253.2.2 2009/12/08 05:19:08 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1378,7 +1378,9 @@ returns: nothing # The first one should be the course or a menu link if (!defined($menulink)) { $menulink=1; } if ($menulink) { - unless ($menulink eq '_nomenu') { + if ($menulink eq '_nomenu') { + return unless($last); + } else { my $description = 'Menu'; my $no_mt_descr = 0; $menulink = { href =>'/adm/menu', @@ -1386,13 +1388,13 @@ returns: nothing target =>'_top', text =>$description, no_mt =>$no_mt_descr, }; - } - if($last) { - #$last set, so we have some crumbs - unshift(@Crumbs,$menulink); - } else { - #only menulink crumb present - $last = $menulink; + if($last) { + #$last set, so we have some crumbs + unshift(@Crumbs,$menulink); + } else { + #only menulink crumb present + $last = $menulink; + } } } my $links = join "",