parent-merge 36587 - Added check for default country for GeoIP.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@45057 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2007-11-19 01:55:00 +00:00
parent a364c30540
commit 2881bf34a4

View File

@ -311,7 +311,7 @@ class Geoip extends Object {
$code = substr($country, $start, 2); // skip space
}
if ($code == 'IP' || $code == '--') {
if(self::$default_country_code) return self::$default_country_code;
if(self::$default_country_code) $code = self::$default_country_code;
else return false;
}