From 59e9212845300cc6f63fd30427d27342994764d6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 2 Jun 2009 07:26:08 +0000 Subject: [PATCH] Kosmetik. --- SL/Template.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SL/Template.pm b/SL/Template.pm index 40169339c..3c34ce74f 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -169,16 +169,16 @@ sub parse_foreach { my $ary = $self->_get_loop_variable($var, 1, @indices); - my $sum = 0; - my $current_page = 1; + my $sum = 0; + my $current_page = 1; my ($current_line, $corrent_row) = (0, 1); - my $description_array = $self->_get_loop_variable("description",1); - my $longdescription_array = $self->_get_loop_variable("longdescription",1); + my $description_array = $self->_get_loop_variable("description", 1); + my $longdescription_array = $self->_get_loop_variable("longdescription", 1); for (my $i = 0; $i < scalar(@{$ary}); $i++) { - $form->{"__first__"} = $i == 0; - $form->{"__last__"} = ($i + 1) == scalar(@{$ary}); - $form->{"__odd__"} = (($i + 1) % 2) == 1; + $form->{"__first__"} = $i == 1; + $form->{"__last__"} = ($i + 1) == scalar(@{$ary}); + $form->{"__odd__"} = (($i + 1) % 2) == 1; $form->{"__counter__"} = $i + 1; if (scalar @{$description_array} == scalar @{$ary} && $self->{"chars_per_line"} != 0) { -- 2.20.1