From 0393324abdfbb56e6240f5aa3677b5c23c4ecbdb Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 17 Aug 2016 12:29:59 +0200 Subject: [PATCH] MT#22049 fix a dereference typo in the mysql connection string Change-Id: I5b14d065381ff157bb1671229d0123b97bc7fa96 --- reminder.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reminder.pl b/reminder.pl index 4a54f87..c517da7 100755 --- a/reminder.pl +++ b/reminder.pl @@ -23,7 +23,7 @@ my @wdays = split /\s*,\s*/, $cfg{weekdays}; my $dsn = "DBI:mysql:database=$cfg{database};host=$cfg{dbhost};port=0"; -my $dbh = DBI->connect($dsn, ${cfg}{qw(dbuser dbpassword)}) +my $dbh = DBI->connect($dsn, @{cfg}{qw(dbuser dbpassword)}) or die "Cannot connect to db: ".$DBI::errstr; my $sth = $dbh->prepare("SELECT a.username, b.domain, c.recur, c.id " .