@@ -, +, @@ using exactly once. --- acqui/parcels.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- a/acqui/parcels.pl +++ a/acqui/parcels.pl @@ -112,7 +112,7 @@ if ( $op and $op eq 'new' ) { supplierid => $booksellerid, invoicenumber => $invoicenumber, ); - if ( $#invoices > 0 ) { + if ( scalar @invoices > 0 ) { $template->{'VARS'}->{'duplicate_invoices'} = \@invoices; $template->{'VARS'}->{'invoicenumber'} = $invoicenumber; $template->{'VARS'}->{'shipmentdate'} = $shipmentdate; --