From e81efe40ef7fa9dbf4f5785f8d775b8398385aee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 4 Apr 2011 18:18:46 +0200 Subject: [PATCH] Ein strict Problem beheben. --- SL/Template/OpenDocument.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1