redirect to printer REST only if barcode was found
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Feb 2012 21:26:54 +0000 (22:26 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 Mar 2019 14:41:15 +0000 (15:41 +0100)
labels/spinelabel-print.pl

index 55cb638..e219538 100755 (executable)
@@ -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},