my $menu_title = $::locale->text($item);
my $menu_text = $menu_title;
- if ($menu_item->{"submenu"} || !defined($menu_item->{"module"})) {
+ if ($menu_item->{"submenu"} || !defined($menu_item->{"module"}) && !defined($menu_item->{href})) {
my $h = $self->print_menu("${parent}${item}", $depth * 1 + 1)."\n";
if (!$parent) {
my @vars = qw(module action target href);
if ($menuitem->{href}) {
- $str = qq|<a href=$menuitem->{href}|;
+ $str = qq|<a href="$menuitem->{href}|;
@vars = qw(module target href);
}