From 343802f9ae7c58f3b63be701f186c61a09adf42a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 24 Nov 2011 16:15:51 +0100 Subject: [PATCH] post if fehler. --- bin/mozilla/rp.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1