]> git.donarmstrong.com Git - debbugs.git/commitdiff
* Use map to apply the split to make_list in the custom
authorDon Armstrong <don@donarmstrong.com>
Sat, 14 Jul 2007 07:24:27 +0000 (00:24 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 14 Jul 2007 07:24:27 +0000 (00:24 -0700)
   categorization parameter code.

cgi/pkgreport.cgi

index b9bdf7d83017bb2215e5d5da8ba8f09f0801ddc2..37f4196dbaab5977f3bcf2170d564e532e72bdff 100755 (executable)
@@ -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;