Skip to content

Commit

Permalink
Merge pull request #21 from brandonsavage/bug804293
Browse files Browse the repository at this point in the history
Bug 804293 - Fixing a persistent notice that appears when GEOIP =
  • Loading branch information
brandonsavage committed Dec 27, 2012
2 parents 8a417a4 + 08c108b commit 0650c81
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bouncer/php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ function setHttpType($ssl_only) {
os_id = %d", array($product_id, $os_id));

$client_ip = null;

$fallback_global = FALSE; // False means we WILL fall back.

// did we get a valid location?
if (!empty($location)) {
$mirrors = false;
Expand Down Expand Up @@ -304,11 +305,15 @@ function setHttpType($ssl_only) {
array($where_lang, $location['id'], $client_region), MYSQL_ASSOC, 'id');
}
}


}

// If we're here we've fallen back to global
$fallback_global = getGlobalFallbackProhibited($client_region);
if (empty($mirrors) && !$fallback_global) {
if (GEOIP) {
$fallback_global = getGlobalFallbackProhibited($client_region);
}
// either no region chosen or no mirror found in the given region
$http_type = setHttpType($ssl_only);
$mirrors = $sdo->get("
Expand Down

0 comments on commit 0650c81

Please sign in to comment.