[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Thu Aug 16 14:35:47 EDT 2012
raeburn Thu Aug 16 18:35:47 2012 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- w3c validation.
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.384 loncom/interface/lonmenu.pm:1.385
--- loncom/interface/lonmenu.pm:1.384 Fri Aug 3 01:36:55 2012
+++ loncom/interface/lonmenu.pm Thu Aug 16 18:35:47 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.384 2012/08/03 01:36:55 raeburn Exp $
+# $Id: lonmenu.pm,v 1.385 2012/08/16 18:35:47 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -393,8 +393,10 @@
}
$menu =~ s/\[uname\]/$$author{user}/g;
$menu =~ s/\[udom\]/$$author{dom}/g;
-
- return "<ul id=\"LC_secondary_menu\">$menu</ul>";
+ if ($menu) {
+ $menu = "<ul id=\"LC_secondary_menu\">$menu</ul>";
+ }
+ return $menu;
}
sub create_submenu {
More information about the LON-CAPA-cvs
mailing list