com web/php: Fix EOL dates bug.: eol.php

From: 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-17216@lists.php.net to get a copy of this message
Commit: 64b7737ac48d3a9f882878ecb10679fe4fe8e4f4 Author: Sherif Ramadan <googleguy@php.net> Fri, 22 Nov 2013 20:03:37 -0500 Parents: e2a334fca714c3fb1f2c221daf0f31c35c8dca80 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=64b7737ac48d3a9f882878ecb10679fe4fe8e4f4 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 )

« previous php.webmaster (#17216) next »