Skip to content

Commit

Permalink
Fix EOL dates bug.
Browse files Browse the repository at this point in the history
No need for a loop and the first array element should be used for the ternary,
not the second.
  • Loading branch information
srgoogleguy committed Nov 23, 2013
1 parent e2a334f commit 64b7737
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eol.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@
$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
)
Expand Down

0 comments on commit 64b7737

Please sign in to comment.