com web/php: Fix EOL dates bug.: eol.php
| From: | Paul Dragoonis | Date: | Sat, 23 Nov 2013 01:03:37 +0000 |
| Subject: | com web/php: Fix EOL dates bug.: eol.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22442@lists.php.net to get a copy of this message | ||
Commit: 07957d7d45b7356dc0d2eb5fc226a1bb2cb1c0f7
Author: Sherif Ramadan <googleguy@php.net> Fri, 22 Nov 2013 20:03:37 -0500
Parents: 77694c1ee5828f9c0f4d1c4f96c8af832f4139d5
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=07957d7d45b7356dc0d2eb5fc226a1bb2cb1c0f7
Log:
Fix EOL dates bug.
No need for a loop and the first array element should be used for the ternary,
not the second.
Changed paths:
M eol.php
Diff:
diff --git a/eol.php b/eol.php
index 6c9ab29..0b6564f 100644
--- a/eol.php
+++ b/eol.php
@@ -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
)