--- loncom/interface/loncommon.pm 2004/07/03 19:12:41 1.195 +++ loncom/interface/loncommon.pm 2004/07/03 20:24:12 1.196 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.195 2004/07/03 19:12:41 albertel Exp $ +# $Id: loncommon.pm,v 1.196 2004/07/03 20:24:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -662,7 +662,13 @@ sub help_open_menu { } my $banner_link = "/adm/helpmenu?page=banner&color=$color&function=$function&topic=$topic&component_help=$component_help&faq=$faq&bug=$bug&origurl=$origurl&stamp=$timestamp"; my $details_link = "/adm/helpmenu?page=body&color=$color&function=$function&topic=$topic&component_help=$component_help&faq=$faq&bug=$bug&origurl=$origurl&stamp=$timestamp"; - my $template .= <<"ENDTEMPLATE"; + my $template; + if ($text ne "") { + $template .= + "". + "
$text"; + } + $template .= <<"ENDTEMPLATE"; (Help Menu) ENDTEMPLATE + if ($text ne '') { $template.='
' }; return $template; }