aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-03-14 21:52:16 +0000
committerStruan Donald <struan@exo.org.uk>2012-03-14 21:52:16 +0000
commit91859b4f7df490001df3a54067fc01929cb0490f (patch)
treeb6b36117e2e30d80f926e40aea7f3723b61ae4df /perllib/FixMyStreet/Map.pm
parentf66b805206f7e28d96161fa9abc077c0a9d60b2c (diff)
parent491d21469a34b028c00eed7a0f26ff7f3725dcb0 (diff)
Merge remote-tracking branch 'origin/master' into phonegap
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r--perllib/FixMyStreet/Map.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm
index 2bccf1584..08bba3285 100644
--- a/perllib/FixMyStreet/Map.pm
+++ b/perllib/FixMyStreet/Map.pm
@@ -95,8 +95,10 @@ sub _map_features {
my $around_limit = $c->cobrand->on_map_list_limit || undef;
my @around_args = ( $min_lat, $max_lat, $min_lon, $max_lon, $interval );
- my $around_map_list = $c->cobrand->problems->around_map( @around_args, $around_limit );
my $around_map = $c->cobrand->problems->around_map( @around_args, undef );
+ my $around_map_list = $around_limit
+ ? $c->cobrand->problems->around_map( @around_args, $around_limit )
+ : $around_map;
my $dist;
mySociety::Locale::in_gb_locale {