From: Sven Schöling Date: Mon, 16 Jan 2012 17:35:57 +0000 (+0100) Subject: SL::DB: Eine Warning unterdrücken X-Git-Tag: release-2.7.0beta1~54 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5c886d92102c1f897e498d10fa6f58948f06ac78;p=kivitendo-erp.git SL::DB: Eine Warning unterdrücken --- diff --git a/SL/DB.pm b/SL/DB.pm index 55428615f..861fe6a52 100644 --- a/SL/DB.pm +++ b/SL/DB.pm @@ -67,7 +67,8 @@ sub _register_db { } else { my $european_dates = 0; if ($::myconfig{dateformat}) { - $european_dates = 1 if $_dateformats{ $::myconfig{dateformat} } =~ m/european/i; + $european_dates = 1 if $_dateformats{ $::myconfig{dateformat} } + && $_dateformats{ $::myconfig{dateformat} } =~ m/european/i; } %connect_settings = ( driver => $::myconfig{dbdriver} || 'Pg',