aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Page.pm
diff options
context:
space:
mode:
authorLouise Crow <louise@mysociety.org>2010-10-18 14:56:33 +0100
committerLouise Crow <louise@mysociety.org>2010-10-18 14:56:33 +0100
commit74a45e725dc529af5dc8a677153f65588d6f8a2a (patch)
treea6c83a2d5d6486dbb412402644730dce6a4bec48 /perllib/Page.pm
parent869e3c3a06d52509e71cb6ec3447d2c0a51ef9f6 (diff)
parent886209d7ee0960387f0ce90f6044a787eb34308a (diff)
Merge commit 'origin/master' into cities_release_1
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r--perllib/Page.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index fe6a6e8cb..127fad11b 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -918,6 +918,9 @@ sub mapit_check_error {
return $location->{error};
}
my $island = $location->{coordsyst};
+ if (!$island) {
+ return _("Sorry, that appears to be a Crown dependency postcode, which we don't cover.");
+ }
if ($island eq 'I') {
return _("We do not cover Northern Ireland, I'm afraid, as our licence doesn't include any maps for the region.");
}