From: Sven Schöling Date: Thu, 24 Nov 2011 15:15:51 +0000 (+0100) Subject: post if fehler. X-Git-Tag: release-2.7.0beta1~161 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=343802f9ae7c58f3b63be701f186c61a09adf42a;p=kivitendo-erp.git post if fehler. --- diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index e15ac78f4..4bc4673d2 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -1386,8 +1386,8 @@ sub generate_tax_report { # if there are any dates if ($::form->{fromdate} || $::form->{todate}) { - my $fromdate = $::locale->date(\%::myconfig, $::form->{fromdate}, 1) if $::form->{fromdate}; - my $todate = $::locale->date(\%::myconfig, $::form->{todate}, 1) if $::form->{todate}; + my $fromdate = $::form->{fromdate} ? $::locale->date(\%::myconfig, $::form->{fromdate}, 1) : ''; + my $todate = $::form->{todate} ? $::locale->date(\%::myconfig, $::form->{todate}, 1) : ''; push @options, "$fromdate - $todate"; } else { push @options, $::locale->date(\%::myconfig, $::form->current_date, 1);