X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/11461ccecbd3b4f054f52f979c26145642539e8c..fce441db:/bin/mozilla/rp.pl diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index 62abf6683..5115ddd35 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -52,10 +52,6 @@ require "bin/mozilla/reportgenerator.pl"; # should there be any missing vars, declare them globally use strict; -1; - -# end of main - # this is for our long dates # $locale->text('January') # $locale->text('February') @@ -1300,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 = ( @@ -2772,3 +2768,4 @@ sub generate_bwa { $main::lxdebug->leave_sub(); } +1;