aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@ecclestoad.co.uk>2011-02-08 15:37:52 -0300
committerEdmund von der Burg <evdb@ecclestoad.co.uk>2011-02-08 15:37:52 -0300
commit5626921c90cd6069342ab95e3def9e013be836b0 (patch)
tree396a3a90ee5ac635ba1bdb3316bb6865932bda2c
parente8968e2ffd09b859a174a0e535667da3ba1e7f69 (diff)
Fix so that reporting problems works again
-rwxr-xr-xweb/index.cgi3
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;