bug 3467 followup: fix test for item found

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Galen Charlton 2009-08-03 21:24:26 -04:00
parent 9f3ecc8a29
commit 56c72ab972

View file

@ -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 );
}