From 56c72ab9727b4b98c988b1c9c9e25b5bd3d4d465 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 3 Aug 2009 21:24:26 -0400 Subject: [PATCH] bug 3467 followup: fix test for item found Signed-off-by: Galen Charlton --- labels/spinelabel-print.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labels/spinelabel-print.pl b/labels/spinelabel-print.pl index 82c6d51fda..d3a33cc6e4 100755 --- a/labels/spinelabel-print.pl +++ b/labels/spinelabel-print.pl @@ -48,7 +48,7 @@ $sth = $dbh->prepare($sql); $sth->execute($barcode); $item = $sth->fetchrow_hashref; -if ( $item->{'itemnumber'} eq '' ) { +unless (defined $item) { $template->param( 'Barcode' => $barcode ); $template->param( 'BarcodeNotFound' => 1 ); }