diff options
author | Guilhem Moulin <guilhem.moulin@ens-lyon.org> | 2012-02-18 18:25:02 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@ens-lyon.org> | 2012-02-18 18:25:02 +0100 |
commit | e339face270549fa90f64c86b9ac2097d8c1462b (patch) | |
tree | 24665784db849daa6b9f6d53149db96c5e0b82b9 /videorm.pl | |
parent | 093f51ecd808e6e688ff7e130c035b792e7fa22d (diff) |
connection bug
Diffstat (limited to 'videorm.pl')
-rwxr-xr-x | videorm.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -162,8 +162,8 @@ if (-l $file_s) { # 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"; } } |