[Koha-patches] [PATCH] bug 3467 followup: fix test for item found
Galen Charlton
gmcharlt at gmail.com
Tue Aug 4 03:25:07 CEST 2009
---
labels/spinelabel-print.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/labels/spinelabel-print.pl b/labels/spinelabel-print.pl
index 82c6d51..d3a33cc 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 );
}
--
1.5.6.5
More information about the Koha-patches
mailing list