bug 3467 followup: fix test for item found
authorGalen Charlton <gmcharlt@gmail.com>
Tue, 4 Aug 2009 01:24:26 +0000 (21:24 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Tue, 4 Aug 2009 01:25:27 +0000 (21:25 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
labels/spinelabel-print.pl

index 82c6d51..d3a33cc 100755 (executable)
@@ -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 );
 }