projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89b0d17
)
SL::Auth: Warnungen wegen nicht initialisierten Werten vermeiden
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 30 Aug 2019 12:56:50 +0000
(14:56 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 30 Aug 2019 12:56:50 +0000
(14:56 +0200)
Durch Tests getriggert, konkret: durch t/controllers/base/render.t
SL/Auth.pm
patch
|
blob
|
history
diff --git
a/SL/Auth.pm
b/SL/Auth.pm
index
2898222
..
9301796
100644
(file)
--- a/
SL/Auth.pm
+++ b/
SL/Auth.pm
@@
-1126,6
+1126,8
@@
sub evaluate_rights_ary {
my $negate = 0;
foreach my $el (@{$ary}) {
+ next unless defined $el;
+
if (ref $el eq "ARRAY") {
my $val = evaluate_rights_ary($el);
$val = !$val if $negate;