diff --git a/acqui/basketgroup.pl b/acqui/basketgroup.pl index 08356f85b0..0846603933 100755 --- a/acqui/basketgroup.pl +++ b/acqui/basketgroup.pl @@ -211,8 +211,8 @@ sub printbasketgrouppdf{ } else { push(@ba_order, undef); } - if ($ord->{itemtype}){ - push(@ba_order, $itemtypes->{$bib->{itemtype}}->{description}) if $bib->{itemtype}; + if ($ord->{itemtype} and $bib->{itemtype}){ + push(@ba_order, $itemtypes->{$bib->{itemtype}}->{description}); } else { push(@ba_order, undef); }