diff options
author | Edmund von der Burg <evdb@ecclestoad.co.uk> | 2011-02-08 15:37:52 -0300 |
---|---|---|
committer | Edmund von der Burg <evdb@ecclestoad.co.uk> | 2011-02-08 15:37:52 -0300 |
commit | 5626921c90cd6069342ab95e3def9e013be836b0 (patch) | |
tree | 396a3a90ee5ac635ba1bdb3316bb6865932bda2c | |
parent | e8968e2ffd09b859a174a0e535667da3ba1e7f69 (diff) |
Fix so that reporting problems works again
-rwxr-xr-x | web/index.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index 1a7c11af3..213b2fc53 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -315,7 +315,8 @@ sub submit_problem { my $areas; if (defined $input{latitude} && defined $input{longitude}) { - $areas = mySociety::MaPit::call('point', "4326/$input{latitude},$input{longitude}"); + my $mapit_query = "4326/$input{longitude},$input{latitude}"; + $areas = mySociety::MaPit::call( 'point', $mapit_query ); if ($input{council} =~ /^[\d,]+(\|[\d,]+)?$/) { my $no_details = $1 || ''; my %va = map { $_ => 1 } @$mySociety::VotingArea::council_parent_types; |