diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-03-23 18:26:12 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-03-23 18:26:12 +0000 |
commit | b8796cf6afc5f3ccbadbfdd749773447230482a3 (patch) | |
tree | 468bcdf053653eff8278b76a06a8f9bffe465f9d /web/index.cgi | |
parent | 197d916501696c1d8811f05f1ef23e2a11d6e1b4 (diff) |
Nearest road/postcode on reports; don't show pin if map not used for report.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-x | web/index.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index f741e5f5a..c86ac6ad1 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -1063,7 +1063,7 @@ sub display_problem { map_start => FixMyStreet::Map::display_map($q, latitude => $problem->{latitude}, longitude => $problem->{longitude}, type => 0, - pins => [ [ $problem->{latitude}, $problem->{longitude}, 'blue' ] ], + pins => $problem->{used_map} ? [ [ $problem->{latitude}, $problem->{longitude}, 'blue' ] ] : [], post => $map_links ), map_end => FixMyStreet::Map::display_map_end(0), |