From fbf3e7ad7e500cef0c50488a61c094a28bd58972 Mon Sep 17 00:00:00 2001 From: filip Date: Fri, 6 May 2016 22:47:19 +0200 Subject: fallback for unknown country names for mirrors --- en/downloads/get/index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'en/downloads/get/index.php') diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index d9fd01b84..9b1476893 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -104,6 +104,9 @@ try { continue; foreach ($mirs as $mir): + if (!array_key_exists($country, $countries)) { + $countries[$country] = "country: $country"; + } $g_mirs2[$countries[$country]][$mir['city']][] = $mir['url']; endforeach; endforeach; -- cgit v1.2.1