From: Sven Schöling Date: Fri, 1 Feb 2013 13:25:45 +0000 (+0100) Subject: warnings X-Git-Tag: release-3.1.0beta1~646^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7288950e16a6706a155a0c2c4e2a512105b041e6;p=kivitendo-erp.git warnings --- diff --git a/SL/Menu.pm b/SL/Menu.pm index 57d8b4e8a..0fb1b1a95 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -94,7 +94,7 @@ sub access_control { my @menu = (); - if ($menulevel eq "") { + if (!$menulevel) { @menu = grep { !/--/ } @{ $self->{ORDER} }; } else { @menu = grep { /^${menulevel}--/ } @{ $self->{ORDER} };