When the client specifies a begin and end range for SIP2 fine items,
only the first fine item is returned. This is because of a typo on
line 646. The @fines array should be dereferenced there as @fines and
not $fines.
Signed-off-by: Jason Stephenson <jason@sigio.com>
my $log_status = $@ ? 'ERROR: ' . $@ : 'OK';
syslog('LOG_DEBUG', 'OILS: Patron->fine_items() ' . $log_status);
return (defined $start and defined $end) ?
- [ $fines[($start-1)..($end-1)] ] : \@fines;
+ [ @fines[($start-1)..($end-1)] ] : \@fines;
}
# not currently supported