From: Sven Schöling Date: Wed, 28 Oct 2009 10:26:04 +0000 (+0100) Subject: Nicht abgefangene Typenkonvertierung in SL/Template.pm X-Git-Tag: release-2.6.1beta1~147 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f93e0290ac151cfb10610e80c1e018ff222f55f9;p=kivitendo-erp.git Nicht abgefangene Typenkonvertierung in SL/Template.pm --- 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} = [];