From e339face270549fa90f64c86b9ac2097d8c1462b Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 18 Feb 2012 18:25:02 +0100 Subject: connection bug --- videodb-check.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'videodb-check.pl') diff --git a/videodb-check.pl b/videodb-check.pl index 14d58ed..1e5691b 100755 --- a/videodb-check.pl +++ b/videodb-check.pl @@ -135,8 +135,8 @@ if (@ARGV) { # Connect to database my $dsn = "DBI:$config{driver}:database=$config{database};host=$config{hostname};port=$config{port}"; -if (exists $config{dbi_misc}) { - while (my ($k,$v) = each $config{dbi_misc}) { +if (defined $config{dbi_misc}) { + while (my ($k,$v) = each %{$config{dbi_misc}}) { $dsn .= ";$k=$v"; } } -- cgit v1.2.3