mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
6e404b897b
commit
253231eb39
@ -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