From: Sven Schöling Date: Fri, 23 Oct 2009 16:35:12 +0000 (+0200) Subject: 2 nicht abgefangene Arraykonvertierungen. X-Git-Tag: release-2.6.1beta1~150 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=08c340d2caca21066fd8797e29f07facfde7a07c;p=kivitendo-erp.git 2 nicht abgefangene Arraykonvertierungen. --- diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index e6bf0fc75..27b18e400 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -194,7 +194,7 @@ sub account_header { } # Newaccount Folgekonto - if (@{ $form->{NEWACCOUNT} }) { + if (@{ $form->{NEWACCOUNT} || [] }) { if (!$form->{new_chart_valid}) { $form->{selectnewaccount} = qq||; } diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index db1473ed5..5115ddd35 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -1296,7 +1296,7 @@ sub generate_trial_balance { RP->trial_balance(\%myconfig, \%$form, 'beginning_balances' => 1); - $form->{rowcount} = scalar @{ $form->{TB} }; + $form->{rowcount} = scalar @{ $form->{TB} || [] }; $form->{title} = sprintf($locale->text('Trial balance between %s and %s'), $form->{fromdate}, $form->{todate}); my @columns = (