diff options
author | matthew <matthew> | 2008-01-25 17:07:57 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-01-25 17:07:57 +0000 |
commit | f6d8af71b5694724a64169f225d89ab88faab9c5 (patch) | |
tree | bf289e1750277ba09ea96611ee0aa3edb0cc2f59 | |
parent | 9e9f283570fcb18ac0840c0c7022fd3cad49d623 (diff) |
Short circuit after quick errors.
-rwxr-xr-x | web/index.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index 9caacb46b..5ea221a4c 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: index.cgi,v 1.173 2008-01-25 17:05:00 matthew Exp $ +# $Id: index.cgi,v 1.174 2008-01-25 17:07:57 matthew Exp $ use strict; use Standard; @@ -221,6 +221,8 @@ sub submit_problem { $input{category} = ''; } + return display_form($q, @errors) if (@errors); # Short circuit + my $areas; if ($input{easting} && $input{northing}) { $areas = mySociety::MaPit::get_voting_areas_by_location({easting=>$input{easting}, northing=>$input{northing}}, 'polygon'); |