X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMisc%2FGeo.pm;h=4ef10850e35b17c9517bbd9027aed57e8d6bcb61;hb=2d5acabf71d46aa469a6867f294706242c82db98;hp=eb861f32184be640d3ab068ade096a3511a6729b;hpb=ada72090e5e5c97b81388f7591e9c20a54a293ab;p=freeside.git diff --git a/FS/FS/Misc/Geo.pm b/FS/FS/Misc/Geo.pm index eb861f321..4ef10850e 100644 --- a/FS/FS/Misc/Geo.pm +++ b/FS/FS/Misc/Geo.pm @@ -42,6 +42,10 @@ sub get_censustract_ffiec { my $location = shift; my $year = shift; + if ( length($location->{country}) and uc($location->{country}) ne 'US' ) { + return ''; + } + warn Dumper($location, $year) if $DEBUG; my $url = 'http://www.ffiec.gov/Geocode/default.aspx';