diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-02-12 11:04:06 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-02-12 11:04:06 +0100 |
commit | c3e144bdb68b7dbee7b1b6249453a1c61dc18497 (patch) | |
tree | 6e03e4c59176d9f36bfcd59302d83f8c94cb0734 /lib | |
parent | b9828ab2e237efd59e662b4305e866a33519a9a4 (diff) | |
download | smokeping-c3e144bdb68b7dbee7b1b6249453a1c61dc18497.tar.gz smokeping-c3e144bdb68b7dbee7b1b6249453a1c61dc18497.tar.xz |
mkae errors with missing hide values go away
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |