X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6056e1d7ff9b26df2aa3a07ab0c615af1a9bbef4..64084bfa6ba2c9167ff4a5:/SL/Request.pm diff --git a/SL/Request.pm b/SL/Request.pm index d339cb7be..57b729798 100644 --- a/SL/Request.pm +++ b/SL/Request.pm @@ -153,8 +153,8 @@ sub _recode_recursively { # though. $to->{$key} = $iconv->convert("" . $from->{$key}); } else { - $to->{$key} = {} if 'HASH' eq ref $from->{$key}; - $to->{$key} = [] if 'ARRAY' eq ref $from->{$key}; + $to->{$key} ||= {} if 'HASH' eq ref $from->{$key}; + $to->{$key} ||= [] if 'ARRAY' eq ref $from->{$key}; _recode_recursively($iconv, $from->{$key}, $to->{$key}); } } @@ -167,8 +167,8 @@ sub _recode_recursively { # though. $from->[$idx] = $iconv->convert("" . $from->[$idx]); } else { - $to->[$idx] = {} if 'HASH' eq ref $from->[$idx]; - $to->[$idx] = [] if 'ARRAY' eq ref $from->[$idx]; + $to->[$idx] ||= {} if 'HASH' eq ref $from->[$idx]; + $to->[$idx] ||= [] if 'ARRAY' eq ref $from->[$idx]; _recode_recursively($iconv, $from->[$idx], $to->[$idx]); } }