diff options
-rwxr-xr-x | web/alert.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/alert.cgi b/web/alert.cgi index e2a4efaac..17e92fc16 100755 --- a/web/alert.cgi +++ b/web/alert.cgi @@ -90,9 +90,6 @@ sub alert_list { }; } - # truncate the lat,lon for nicer urls - ( $lat, $lon ) = map { Utils::truncate_coordinate($_) } ( $lat, $lon ); - return FixMyStreet::Geocode::list_choices($error, '/alert', $q) if ref($error) eq 'ARRAY'; return alert_front_page($q, $error) if $error; @@ -105,6 +102,9 @@ sub alert_list { $pretty_pc =~ s/ / /; } + # truncate the lat,lon for nicer urls + ( $lat, $lon ) = map { Utils::truncate_coordinate($_) } ( $lat, $lon ); + my $errors = ''; $errors = '<ul class="error"><li>' . join('</li><li>', @errors) . '</li></ul>' if @errors; |