From 252be3c2f07b1c6032724be9c38bd36fb3eafa56 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 4 Aug 2016 20:52:37 -0700 Subject: [PATCH] Avoid wrnings in case we can't get the active branches for some reason --- include/branches.inc | 4 +++- index.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/branches.inc b/include/branches.inc index 9b128b93d..5958fa25f 100644 --- a/include/branches.inc +++ b/include/branches.inc @@ -139,7 +139,9 @@ function get_active_branches($include_recent_eols = true) { } } } - ksort($branches[$major]); + if (!empty($branches[$major])) { + ksort($branches[$major]); + } } ksort($branches); diff --git a/index.php b/index.php index cd1329152..42639c02e 100644 --- a/index.php +++ b/index.php @@ -98,7 +98,7 @@ EOF; $intro .= "