mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Don't trim @PrevDays (causing an error) if it isn't long enough.
llvm-svn: 14156
This commit is contained in:
parent
4fdc92647b
commit
a4caf3f4f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user