]> git.donarmstrong.com Git - debbugs.git/commitdiff
return "" instead of () from english_join
authorDon Armstrong <don@donarmstrong.com>
Sun, 10 Aug 2008 00:27:16 +0000 (17:27 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 10 Aug 2008 00:27:16 +0000 (17:27 -0700)
Debbugs/Common.pm

index e269ffc84fa69b8f2fe6462cfe24b0ffac98b95c..a4d7cf109136c99f370b40fd9b3b1515e38c02c4 100644 (file)
@@ -491,7 +491,7 @@ Joins list properly to make an english phrase.
 sub english_join {
      my ($normal,$last,@list) = @_;
      if (@list <= 1) {
-         return @list?$list[0]:();
+         return @list?$list[0]:'';
      }
      my $ret = $last . pop(@list);
      $ret = join($normal,@list) . $ret;