X-Git-Url: http://git.rot13.org/?p=MARC-Fast;a=blobdiff_plain;f=Fast.pm;h=ace03b3a6db9904baba5c7882ffeb5c40abe4d01;hp=aa510ba5ab60b9f2bdb583de5d95bcecf9b5e8aa;hb=8ddb954243aacc37ee72801b9f1d969d893a5f85;hpb=1677866871d5303a178499e33f86e3c02af57877 diff --git a/Fast.pm b/Fast.pm index aa510ba..ace03b3 100644 --- a/Fast.pm +++ b/Fast.pm @@ -336,7 +336,7 @@ sub to_hash { # repeatable subfiled -- convert it to array if ($val->{$f}) { - if ( $sf_usage->{$f} == 2 ) { + if ( ref($val->{$f}) ne 'ARRAY' ) { $val->{$f} = [ $val->{$f}, $val ]; } else { push @{$val->{$f}}, $val;