bug 3467 followup: fix test for item found
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
9f3ecc8a29
commit
56c72ab972
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ $sth = $dbh->prepare($sql);
|
||||||
$sth->execute($barcode);
|
$sth->execute($barcode);
|
||||||
$item = $sth->fetchrow_hashref;
|
$item = $sth->fetchrow_hashref;
|
||||||
|
|
||||||
if ( $item->{'itemnumber'} eq '' ) {
|
unless (defined $item) {
|
||||||
$template->param( 'Barcode' => $barcode );
|
$template->param( 'Barcode' => $barcode );
|
||||||
$template->param( 'BarcodeNotFound' => 1 );
|
$template->param( 'BarcodeNotFound' => 1 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue