From: Moritz Bunkus Date: Wed, 1 Jul 2015 08:34:33 +0000 (+0200) Subject: DBConnect-Cache: undefined-Warnungen vermeiden X-Git-Tag: release-3.3.0beta~32^2~17 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=21794e2bd0fbd04915f28eee0ef533b6073fcf50;p=kivitendo-erp.git DBConnect-Cache: undefined-Warnungen vermeiden Treten z.B. beim Aufsetzen der Testdatenbank auf. --- diff --git a/SL/DBConnect/Cache.pm b/SL/DBConnect/Cache.pm index 778785ce0..262c113ef 100644 --- a/SL/DBConnect/Cache.pm +++ b/SL/DBConnect/Cache.pm @@ -52,7 +52,7 @@ sub _args2str { map { $_ => $options->{$_} } sort keys %$options; # deterministic order - join ';', apply { s/([;\\])/\\$1/g } $dbconnect, $dbuser, $dbpasswd, $options_str, $initial_sql; + join ';', apply { $_ //= ''; s/([;\\])/\\$1/g } $dbconnect, $dbuser, $dbpasswd, $options_str, $initial_sql; } 1;