index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-11-08 20:47:58 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-08 20:47:58 +0100 |
commit | 874e72bf8055a22acb3bdef203ac5f363f6cfaa0 (patch) | |
tree | 2fee46042487e306737e9d240f5d24575e8feddd /mirrorlist.php | |
parent | 4c14f3e9057e713e6cacabda0ee904b73adc7a44 (diff) |
-rw-r--r-- | mirrorlist.php | 10 |
diff --git a/mirrorlist.php b/mirrorlist.php index c9df00d..56bebea 100644 --- a/mirrorlist.php +++ b/mirrorlist.php @@ -69,9 +69,13 @@ if (array_key_exists('country', $_GET)) { $filter .= '"")'; } - foreach ($ip_versions as $ip_version) - if (strpos($request, '&ip_version=' . $ip_version . '&') !== false) - $filter .= ' AND `mirror_statuses`.`ipv' . $ip_version . '`'; + if (array_key_exists('ip_version', $_GET)) { + $filter .= ' AND (0'; + foreach ($ip_versions as $ip_version) + if (strpos($request, '&ip_version=' . $ip_version . '&') !== false) + $filter .= ' OR `mirror_statuses`.`ipv' . $ip_version . '`'; + $filter .= ')'; + } $result = mysql_run_query( 'SELECT DISTINCT ' . |