From 0b8b24545c98eb4cf22bda155d0e7efbf2bdcdb7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 29 May 2015 15:37:09 +0200 Subject: [PATCH] =?utf8?q?Locale:=20Bei=20parase=5Fdate=5Fstring=20undef?= =?utf8?q?=20sofort=20undef=20zur=C3=BCckgeben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Locale.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/Locale.pm b/SL/Locale.pm index 4cbef1684..d1d9f04b4 100644 --- a/SL/Locale.pm +++ b/SL/Locale.pm @@ -376,6 +376,8 @@ sub parse_date { sub parse_date_to_object { my ($self, $string, %params) = @_; + return undef if !defined $string; + $params{dateformat} ||= $::myconfig{dateformat} || 'yy-mm-dd'; $params{numberformat} ||= $::myconfig{numberformat} || '1,000.00'; my $num_separator = $params{numberformat} =~ m{,\d+$} ? ',' : '.'; -- 2.20.1