From: Dobrica Pavlinusic Date: Thu, 9 Feb 2012 21:26:54 +0000 (+0100) Subject: redirect to printer REST only if barcode was found X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=7bc1f6ce45fc7a48d4007e61e305c1ec209c6227;p=koha.git redirect to printer REST only if barcode was found --- diff --git a/labels/spinelabel-print.pl b/labels/spinelabel-print.pl index 55cb638443..e219538110 100755 --- a/labels/spinelabel-print.pl +++ b/labels/spinelabel-print.pl @@ -67,7 +67,7 @@ if ( my $station = $query->param('station') ) { }); $insert->execute( $item->{barcode}, $item->{biblioitemnumber}, $station ); -} else { +} elsif ( $item ) { my $print_data = join(' ', $item->{barcode},