From f93e0290ac151cfb10610e80c1e018ff222f55f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 28 Oct 2009 11:26:04 +0100 Subject: [PATCH] Nicht abgefangene Typenkonvertierung in SL/Template.pm --- SL/Template.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Template.pm b/SL/Template.pm index b112b2c72..5831270e4 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -269,9 +269,9 @@ sub parse_foreach { 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 $linetotal_array = $self->_get_loop_variable("linetotal", 1); + my $description_array = $self->_get_loop_variable("description", 1) || []; + my $longdescription_array = $self->_get_loop_variable("longdescription", 1) || []; + my $linetotal_array = $self->_get_loop_variable("linetotal", 1) || []; $form->{TEMPLATE_ARRAYS}->{cumulatelinetotal} = []; -- 2.20.1