aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2016-05-06 22:47:19 +0200
committerfilip <filip.komar@gmail.com>2016-05-06 22:47:19 +0200
commitfbf3e7ad7e500cef0c50488a61c094a28bd58972 (patch)
tree1a7a3a7326ec3494702d39b90b36c98162de5de5
parenta65194be97f47fe0fc0298fa2971c73cd26107d6 (diff)
downloadwww-fbf3e7ad7e500cef0c50488a61c094a28bd58972.tar
www-fbf3e7ad7e500cef0c50488a61c094a28bd58972.tar.gz
www-fbf3e7ad7e500cef0c50488a61c094a28bd58972.tar.bz2
www-fbf3e7ad7e500cef0c50488a61c094a28bd58972.tar.xz
www-fbf3e7ad7e500cef0c50488a61c094a28bd58972.zip
fallback for unknown country names for mirrors
-rw-r--r--en/downloads/get/index.php3
1 files changed, 3 insertions, 0 deletions
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;