diff options
author | filip <filip.komar@gmail.com> | 2016-05-06 22:47:19 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-05-06 22:47:19 +0200 |
commit | fbf3e7ad7e500cef0c50488a61c094a28bd58972 (patch) | |
tree | 1a7a3a7326ec3494702d39b90b36c98162de5de5 | |
parent | a65194be97f47fe0fc0298fa2971c73cd26107d6 (diff) | |
download | www-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.php | 3 |
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; |