Don't trim @PrevDays (causing an error) if it isn't long enough.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-06-11 19:55:30 +00:00
parent 6e404b897b
commit 253231eb39

View File

@ -655,7 +655,9 @@ if ($BuildError eq "") {
#
my @PrevDays = map {s/.html//; $_} GetDir ".html";
splice @PrevDays, 20; # Trim down list to something reasonable...
if ((scalar @PrevDays) > 20) {
splice @PrevDays, 20; # Trim down list to something reasonable...
}
my $PrevDaysList = # Format list for sidebar
join "\n ", map { "<a href=\"$_.html\">$_</a><br>" } @PrevDays;