From: Don Armstrong Date: Sat, 14 Jul 2007 07:24:27 +0000 (-0700) Subject: * Use map to apply the split to make_list in the custom X-Git-Tag: release/2.6.0~525^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ececedb41afe429c822480ebbd7c9c03bfc96c1c;p=debbugs.git * Use map to apply the split to make_list in the custom categorization parameter code. --- diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index b9bdf7d..37f4196 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -1097,9 +1097,9 @@ sub determine_ordering { ($h->{"nam"}) = make_list($param{"nam$i"}) if (defined $param{"nam$i"}); - $h->{"ord"} = [ split /\s*,\s*/, make_list($param{"ord$i"}) ] + $h->{"ord"} = [ map {split /\s*,\s*/} make_list($param{"ord$i"}) ] if (defined $param{"ord$i"}); - $h->{"ttl"} = [ split /\s*,\s*/, make_list($param{"ttl$i"}) ] + $h->{"ttl"} = [ map {split /\s*,\s*/} make_list($param{"ttl$i"}) ] if (defined $param{"ttl$i"}); push @c, $h;