X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/66c9114861885f75a29030682be83976cd93838b..a9cf6be5381c3d7274a8b002c94e77bfeb8fa64a:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 9a7c9e175..e7ee2b216 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -57,6 +57,7 @@ use SL::Template; use SL::User; use Template; use List::Util qw(first max min sum); +use List::MoreUtils qw(any); my $standard_dbh; @@ -255,7 +256,7 @@ sub _recode_recursively { $main::lxdebug->enter_sub(); my ($iconv, $param) = @_; - if (ref $param eq 'HASH') { + if (any { ref $param eq $_ } qw(Form HASH)) { foreach my $key (keys %{ $param }) { if (!ref $param->{$key}) { $param->{$key} = $iconv->convert($param->{$key}); @@ -1354,6 +1355,7 @@ Content-Length: $numbytes while () { print OUT $_; + } close(OUT);