For some reason, while running this in the middle of the day, we got an
undefined copy from acps_for_bre in Marque::Biblio. Since I'm using this
as a stop gap until I write something better, I figured that I would add
a short circuit to skip any unefined acps returned by that method.
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
if ($Marque::config->option_value('items')) {
my @acps = $self->acps_for_bre($bre);
foreach my $acp (@acps) {
+ next unless ($acp);
my $location = $Marque::config->option_value('location');
my $price = ($acp->price() ? $Marque::config->option_value('money').$acp->price() : '');
$r->insert_grouped_field(