From c3e144bdb68b7dbee7b1b6249453a1c61dc18497 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Tue, 12 Feb 2008 10:04:06 +0000 Subject: mkae errors with missing hide values go away --- lib/Smokeping.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index efda646..e2d6a36 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -624,11 +624,11 @@ sub target_menu($$$$;$){ if ($tree->{$key}{__tree_link} and $tree->{$key}{__tree_link}{menu}){ $menu = $tree->{$key}{__tree_link}{menu}; $title = $tree->{$key}{__tree_link}{title}; - next if $tree->{$key}{__tree_link}{hide} eq 'yes'; + next if $tree->{$key}{__tree_link}{hide} and $tree->{$key}{__tree_link}{hide} eq 'yes'; } elsif ($tree->{$key}{menu}) { $menu = $tree->{$key}{menu}; $title = $tree->{$key}{title}; - next if $tree->{$key}{hide} eq 'yes'; + next if $tree->{$key}{hide} and $tree->{$key}{hide} eq 'yes'; }; my $class = 'menuitem'; -- cgit v1.2.3-24-g4f1b