From 21794e2bd0fbd04915f28eee0ef533b6073fcf50 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 1 Jul 2015 10:34:33 +0200 Subject: [PATCH] DBConnect-Cache: undefined-Warnungen vermeiden Treten z.B. beim Aufsetzen der Testdatenbank auf. --- SL/DBConnect/Cache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1