From 64b7737ac48d3a9f882878ecb10679fe4fe8e4f4 Mon Sep 17 00:00:00 2001 From: Sherif Ramadan Date: Fri, 22 Nov 2013 20:03:37 -0500 Subject: [PATCH] Fix EOL dates bug. No need for a loop and the first array element should be used for the ternary, not the second. --- eol.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eol.php b/eol.php index 6c9ab2911..0b6564fdc 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 )