From 7c223802422cf4c57407553f11b6c167a8bc06b3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 9 Aug 2012 14:07:35 +0200 Subject: [PATCH] Bug 8524: Followup FIX an undeclared variable $query Signed-off-by: Kyle M Hall --- cataloguing/value_builder/barcode.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/value_builder/barcode.pl b/cataloguing/value_builder/barcode.pl index ac1028928f..5aeae9f61e 100755 --- a/cataloguing/value_builder/barcode.pl +++ b/cataloguing/value_builder/barcode.pl @@ -90,7 +90,7 @@ sub plugin_javascript { } elsif ($autoBarcodeType eq 'EAN13') { # not the best, two catalogers could add the same barcode easily this way :/ - $query = "select max(abs(barcode)) from items"; + my $query = "select max(abs(barcode)) from items"; my $sth = $dbh->prepare($query); $sth->execute(); while (my ($last)= $sth->fetchrow_array) { -- 2.39.5