--- loncom/interface/lonmenu.pm 2013/09/07 19:58:01 1.421 +++ loncom/interface/lonmenu.pm 2013/12/27 14:17:59 1.424 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.421 2013/09/07 19:58:01 raeburn Exp $ +# $Id: lonmenu.pm,v 1.424 2013/12/27 14:17:59 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -283,8 +283,14 @@ sub primary_menu { $menu{$position} .= prep_menuitem($menuitem); } } - return ("
    $menu{'left'}
", - "
    $menu{'right'}
"); + my @output = ('',''); + if ($menu{'left'} ne '') { + $output[0] = "
    $menu{'left'}
"; + } + if ($menu{'right'} ne '') { + $output[1] = "
    $menu{'right'}
"; + } + return @output; } #returns hashref {user=>'',dom=>''} containing: @@ -743,7 +749,7 @@ ENDMENUITEMS # wishlist is only available for users with access to resource-pool # and links can only be set for resources within the resource-pool $menuitems .= (<