Bug 8524: Followup FIX an undeclared variable $query

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2012-08-09 14:07:35 +02:00 committed by Paul Poulain
parent eb51a7346a
commit 7c22380242
1 changed files with 1 additions and 1 deletions

View File

@ -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) {