if ($q->path_info =~ m#xml#) {
- my @ds = $db->load_ds($rec);
+ my $ds = $db->load_ds($rec);
- if (@ds && $#ds > 0) {
+ if ($ds) {
print qq{<response>
<action type='html' target='div_record' errorCode='' errorMessage='' >
}, $iconv_utf8->convert( $out->apply(
template => $template_file,
- data => \@ds,
+ data => $ds,
) ), qq{
</action>