From aef645e9e5bb85d66ca9aae4d62a3b626ed89602 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 23 Jun 2009 12:54:04 +0200 Subject: [PATCH] removing 2 warnings --- acqui/basketgroup.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/basketgroup.pl b/acqui/basketgroup.pl index c760936cdf..e8027a811c 100755 --- a/acqui/basketgroup.pl +++ b/acqui/basketgroup.pl @@ -276,7 +276,7 @@ if (! $op ) { push(@ba_order, undef); } if ($ord->{itemtype}){ - push(@ba_order, $itemtypes->{$bib->{itemtype}}->{description}); + push(@ba_order, $itemtypes->{$bib->{itemtype}}->{description}) if $bib->{itemtype}; } else { push(@ba_order, undef); } @@ -286,7 +286,7 @@ if (! $op ) { push(@ba_order, $ord->{$key}); #Order lines } push(@ba_order, $bookseller->{discount}); - push(@ba_order, $bookseller->{gstrate}*100 || C4::Context->preference("gist")); + push(@ba_order, $bookseller->{gstrate}*100 || C4::Context->preference("gist") || 0); push(@ba_orders, \@ba_order); } } -- 2.39.2