aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-10 12:23:28 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-10 12:23:28 +0100
commit58096757d4d232ef0e848efc934fb846ef805539 (patch)
treede747e2c2e5715ff6ddb088eb0673b0d9bb635e3 /perllib/FixMyStreet/App/Controller/Around.pm
parent1a25ba193b2c387934721947d1d59d2d92814c08 (diff)
IF on an arrayref in a template returns true, so need to check size.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm16
1 files changed, 7 insertions, 9 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 370fe7b89..2bfd52633 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -195,15 +195,13 @@ sub display_location : Private {
} @$on_map_all, @$around_map;
}
- { # FIXME - ideally this indented code should be in the templates
- FixMyStreet::Map::display_map(
- $c,
- latitude => $latitude,
- longitude => $longitude,
- clickable => 1,
- pins => \@pins,
- );
- }
+ FixMyStreet::Map::display_map(
+ $c,
+ latitude => $latitude,
+ longitude => $longitude,
+ clickable => 1,
+ pins => \@pins,
+ );
return 1;
}