]> git.donarmstrong.com Git - debbugs.git/commitdiff
english_join needs to actually return and use params
authorDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 04:42:17 +0000 (20:42 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 04:42:17 +0000 (20:42 -0800)
Debbugs/Common.pm

index 4f85a8f7bb5dadcabb95fe63d8bc7a31d69651c3..aaa8db19221510b89c7cf87e3acd1191568af44c 100644 (file)
@@ -533,9 +533,9 @@ element, returns that element.
 
 sub english_join {
     if (ref $_[0] eq 'ARRAY') {
-       english_join(list=>$_[0]);
+       return english_join(list=>$_[0]);
     }
-    my %param = validate_with(param => \@_,
+    my %param = validate_with(params => \@_,
                              spec  => {normal => {type => SCALAR,
                                                   default => ', ',
                                                  },