Commit:    64b7737ac48d3a9f882878ecb10679fe4fe8e4f4
Author:    Sherif Ramadan <[email protected]>         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
                                                                                
                                )


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to