diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-07-13 10:55:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-07-13 11:39:13 +0100 |
commit | df59d7dbefa36b66c427f1d33f6392f1a3c209f5 (patch) | |
tree | a63913750ea868221e1192918d68a94d4c9be886 /perllib/FixMyStreet/Geocode | |
parent | 02d06df3644d53aaa2611882491230fc28d843bd (diff) |
Remove various UK specific code out of Default cobrand into UK one.
Diffstat (limited to 'perllib/FixMyStreet/Geocode')
-rw-r--r-- | perllib/FixMyStreet/Geocode/Bing.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Geocode/Bing.pm b/perllib/FixMyStreet/Geocode/Bing.pm index 3bbb9dcdc..148ad5f43 100644 --- a/perllib/FixMyStreet/Geocode/Bing.pm +++ b/perllib/FixMyStreet/Geocode/Bing.pm @@ -56,7 +56,7 @@ sub string { foreach (@$results) { my $address = $_->{name}; - next unless $_->{address}->{countryRegion} eq $params->{bing_country}; + next if $params->{bing_country} && $_->{address}->{countryRegion} ne $params->{bing_country}; if ($params->{bing_country} eq 'United Kingdom' && $_->{address}{adminDistrict} eq 'Northern Ireland') { $ni = 1; next; |