From d65266eb84dbd33301eefedc4602588cecedd6d6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 3 Oct 2013 13:22:53 -0400 Subject: [PATCH] Bug 7131: (follow-up) initialized some variables properly Signed-off-by: Galen Charlton --- C4/ImportBatch.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 3bf71e1d43..61d5b86133 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -688,7 +688,10 @@ sub BatchCommitItems { my $dbh = C4::Context->dbh; - my ( $num_items_added, $num_items_errored, $num_items_replaced ) = 0; + my $num_items_added = 0; + my $num_items_errored = 0; + my $num_items_replaced = 0; + my $sth = $dbh->prepare( " SELECT import_items_id, import_items.marcxml, encoding FROM import_items -- 2.39.5