---
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
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches