From ececedb41afe429c822480ebbd7c9c03bfc96c1c Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 14 Jul 2007 00:24:27 -0700 Subject: [PATCH] * Use map to apply the split to make_list in the custom categorization parameter code. --- cgi/pkgreport.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2