From: Sven Schöling Date: Fri, 29 May 2015 13:37:09 +0000 (+0200) Subject: Locale: Bei parase_date_string undef sofort undef zurückgeben. X-Git-Tag: release-3.3.0beta~66 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0b8b24545c98eb4cf22bda155d0e7efbf2bdcdb7;p=kivitendo-erp.git Locale: Bei parase_date_string undef sofort undef zurückgeben. --- 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+$} ? ',' : '.';