X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fmaninvoice.pl;h=9e8d4297b810ba95ccdd0203a2b460719da844b0;hb=1c6cdaf162591892cc8a4318044482563fe47bdc;hp=f804e526662f4059f352e6ebeabdcfc84e327de6;hpb=9bb2554e39c583fb994a9d6bb487a75fc7c7251e;p=koha_fer diff --git a/members/maninvoice.pl b/members/maninvoice.pl index f804e52666..9e8d4297b8 100755 --- a/members/maninvoice.pl +++ b/members/maninvoice.pl @@ -45,7 +45,10 @@ if ($add){ if(checkauth($input)) { # print $input->header; my $barcode=$input->param('barcode'); - my $itemnum = GetItemnumberFromBarcode($barcode) if $barcode; + my $itemnum; + if ($barcode) { + $itemnum = GetItemnumberFromBarcode($barcode); + } my $desc=$input->param('desc'); my $amount=$input->param('amount'); my $type=$input->param('type');