defaultToVisitorCountry = $val; } function Value() { $source = $this->getSource(); if($this->defaultToVisitorCountry && !$this->value || !isset($source[$this->value])) { return ($vc = Geoip::visitor_country()) ? $vc : Geoip::get_default_country_code(); } else { return $this->value; } } }