From bf4a7bd65c8529b5eaf3cbea6d7111bef634cc22 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Thu, 27 Sep 2012 14:52:14 +0800 Subject: [PATCH 1/2] Bug 8826 - Initialization of hash triggers error log entries. Changed: our %renew_failed = {}; To: our %renew_failed = (); This prevents an error log about Reference found where even-sized list expected. Signed-off-by: Kyle M Hall Signed-off-by: Jared Camins-Esakov --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index b051281d21..5984e0b6d1 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -94,7 +94,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( my $branches = GetBranches(); my @failedrenews = $query->param('failedrenew'); # expected to be itemnumbers -our %renew_failed = {}; +our %renew_failed = (); for (@failedrenews) { $renew_failed{$_} = 1; } my @failedreturns = $query->param('failedreturn'); From 5011479de33e56aa27c74fd60befe4e4963ce013 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 28 Sep 2012 09:19:29 -0400 Subject: [PATCH 2/2] Bug 8826 - Initialization of hash triggers error log entries - Followup Signed-off-by: Chris Cormack Signed-off-by: Jared Camins-Esakov --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 5984e0b6d1..2a6214a537 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -98,7 +98,7 @@ our %renew_failed = (); for (@failedrenews) { $renew_failed{$_} = 1; } my @failedreturns = $query->param('failedreturn'); -our %return_failed = {}; +our %return_failed = (); for (@failedreturns) { $return_failed{$_} = 1; } my $findborrower = $query->param('findborrower');