From: Don Armstrong Date: Fri, 16 Jun 2006 23:38:16 +0000 (-0700) Subject: * Only map to english if there are more priorities than tags X-Git-Tag: release/2.6.0~607^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ff4f3db71d8b91b5e1aa9057e43845bcb31e6a07;p=debbugs.git * Only map to english if there are more priorities than tags (closes: #372936) --- diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 4dbd04dc..ba895243 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -1083,7 +1083,9 @@ sub determine_ordering { push @order, [ 0..$#{$prior[-1]} ]; } my @t = @{ $c->{"ttl"} } if defined $c->{ttl}; - push @t, map { toenglish($prior[-1]->[$_]) } ($#t+1)..($#{$prior[-1]}); + if (($#t+1) < $#{$prior[-1]}) { + push @t, map { toenglish($prior[-1]->[$_]) } ($#t+1)..($#{$prior[-1]}); + } push @t, $c->{"def"} || ""; push @title, [@t]; }