From: Sven Schöling Date: Mon, 4 Apr 2011 16:18:46 +0000 (+0200) Subject: Ein strict Problem beheben. X-Git-Tag: release-2.6.3~33^2~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e81efe40ef7fa9dbf4f5785f8d775b8398385aee;p=kivitendo-erp.git Ein strict Problem beheben. --- diff --git a/SL/Template/OpenDocument.pm b/SL/Template/OpenDocument.pm index 552bc2f42..88b4cffbf 100644 --- a/SL/Template/OpenDocument.pm +++ b/SL/Template/OpenDocument.pm @@ -37,7 +37,7 @@ sub parse_foreach { my $ary = $self->_get_loop_variable($var, 1, @indices); - for (my $i = 0; $i < scalar(@{$ary}); $i++) { + for (my $i = 0; $i < scalar(@{$ary || []}); $i++) { $form->{"__first__"} = $i == 0; $form->{"__last__"} = ($i + 1) == scalar(@{$ary}); $form->{"__odd__"} = (($i + 1) % 2) == 1;