summaryrefslogtreecommitdiffstats
path: root/videomv.pl
diff options
context:
space:
mode:
Diffstat (limited to 'videomv.pl')
-rwxr-xr-xvideomv.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/videomv.pl b/videomv.pl
index d7d4655..2448855 100755
--- a/videomv.pl
+++ b/videomv.pl
@@ -380,8 +380,8 @@ my @real_directors = splitdir($real_directors);
my ($dsn, $dbh, $RES, $nRES, $id);
unless (defined $ignoredb_flag) {
$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";
}
}