[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 19 Apr 2004 16:43:03 -0000


matthew		Mon Apr 19 12:43:03 2004 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  &breadcrumbs: Fixed logic in menu link output flag.
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.65 loncom/interface/lonhtmlcommon.pm:1.66
--- loncom/interface/lonhtmlcommon.pm:1.65	Fri Apr 16 11:06:56 2004
+++ loncom/interface/lonhtmlcommon.pm	Mon Apr 19 12:43:03 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.65 2004/04/16 15:06:56 albertel Exp $
+# $Id: lonhtmlcommon.pm,v 1.66 2004/04/19 16:43:03 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -952,7 +952,7 @@
         #
         # The first one should be the course, I guess.
 	if (!defined($menulink)) { $menulink=1; }
-        if ($menulink && exists($ENV{'request.course.id'})) {
+        if ($menulink && exists($ENV{'request.course.id'}) && $ENV{'request.course.id'} ne '') {
             my $cid = $ENV{'request.course.id'};
             unshift(@Crumbs,{
                              href=>'/adm/menu',