diff options
author | matthew <matthew> | 2009-10-04 16:41:59 +0000 |
---|---|---|
committer | matthew <matthew> | 2009-10-04 16:41:59 +0000 |
commit | 76f9def876cd88de94a4b857cfd3e224479068d0 (patch) | |
tree | e53a205882a2c61966196a2ffd61690aaa7e4b0f | |
parent | 54aff71e10da9f3e31ada92a666c4df9db1e9949 (diff) |
Bloody spammers.
-rwxr-xr-x | web/index.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi index 49e807d92..0827e3139 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.292 2009-09-28 15:40:28 louise Exp $ +# $Id: index.cgi,v 1.293 2009-10-04 16:41:59 matthew Exp $ use strict; use Standard; @@ -891,7 +891,7 @@ sub display_problem { } # Get all information from database - return display_location($q, _('Unknown problem ID')) if $input{id} =~ /\D/; + return display_location($q, _('Unknown problem ID')) if !$input{id} || $input{id} =~ /\D/; my $problem = Problems::fetch_problem($input{id}); return display_location($q, _('Unknown problem ID')) unless $problem; return front_page($q, _('That report has been removed from FixMyStreet.')) if $problem->{state} eq 'hidden'; |