1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Fix EOL dates bug.

No need for a loop and the first array element should be used for the ternary,
not the second.
This commit is contained in:
Sherif Ramadan
2013-11-22 20:03:37 -05:00
parent e2a334fca7
commit 64b7737ac4

View File

@@ -60,10 +60,8 @@ site_header('Unsupported Branches');
$eolPeriod = implode(', ',
array_map(
function($t) {
foreach ($t as $T) {
return "$t[0] $t[1]" .
($t[1] != 1 ? 's' : '');
}
return "$t[0] $t[1]" .
($t[0] != 1 ? 's' : '');
},
$times
)