X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/ba659b53059e637777865e646f0f2a6fb7f2988e..d8a1fb31ed6883aef6a7ba78a117269218966a10:/selfforum-cgi/shared/Mail.pm?ds=sidebyside diff --git a/selfforum-cgi/shared/Mail.pm b/selfforum-cgi/shared/Mail.pm index e46a81c..73166c9 100644 --- a/selfforum-cgi/shared/Mail.pm +++ b/selfforum-cgi/shared/Mail.pm @@ -186,18 +186,12 @@ sub encode_qp ($) sub get_list ($$) { my ($start,$list)=splice @_; - my $string=""; - return "" unless (length($list)); - if (ref($list)) { - return "" unless (@$list); - foreach (@$list) { - $string.="$start: $_\n";}} - else { - $string="$start: $list\n";} + return $start . ': ' . $list . "\n" if (defined $list and not ref $list and length $list); - # Rueckgabe - $string; + return $start . ': ' . join (', ',@$list) . "\n" if (ref $list); + + ''; } ##############################################