diff options
author | matthew <matthew> | 2007-04-14 12:52:53 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-04-14 12:52:53 +0000 |
commit | 0972878df1978feea12cd32972dfc342e1a147ac (patch) | |
tree | c6706232077c590df8f152e6faaf29a15c6cca90 | |
parent | 37e01f3ec9fe54470e1677f9f08b58575edb7f54 (diff) |
Error for hidden problems.
-rwxr-xr-x | web/index.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/index.cgi b/web/index.cgi index fa433ce6e..0006761a6 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.107 2007-04-10 13:53:54 matthew Exp $ +# $Id: index.cgi,v 1.108 2007-04-14 12:52:53 matthew Exp $ # TODO # Nothing is done about the update checkboxes - not stored anywhere on anything! @@ -552,9 +552,10 @@ sub display_problem { # Get all information from database my $problem = dbh()->selectrow_arrayref( "select state, easting, northing, title, detail, name, extract(epoch from created), photo, anonymous - from problem where id=? and state in ('confirmed','fixed')", {}, $input{id}); + from problem where id=? and state in ('confirmed','fixed', 'hidden')", {}, $input{id}); return display_location($q, 'Unknown problem ID') unless $problem; my ($state, $easting, $northing, $title, $desc, $name, $time, $photo, $anonymous) = @$problem; + return front_page($q, 'That problem has been removed') if $state eq 'hidden'; my $x = os_to_tile($easting); my $y = os_to_tile($northing); my $x_tile = $input{x} || int($x); |