1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Avoid wrnings in case we can't get the active branches for some reason

This commit is contained in:
Rasmus Lerdorf
2016-08-04 20:52:37 -07:00
parent 772fa9b691
commit 252be3c2f0
2 changed files with 4 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ EOF;
$intro .= "<ul>\n";
foreach (get_active_branches() as $major => $releases) {
foreach ($releases as $release) {
foreach ((array)$releases as $release) {
$version = $release['version'];
list($major, $minor, $_) = explode('.', $version);
$intro .= "