diff options
author | matthew <matthew> | 2007-03-26 12:12:46 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-03-26 12:12:46 +0000 |
commit | c604d2fff25b3c33e433f8b1e3fda3c7a8ef7ae5 (patch) | |
tree | da35896012980bc36adf1500b9506b05df1fb2c8 | |
parent | ba7a3aa7fabdd71eeca419110f88a6b8a1824293 (diff) |
Show photos on fixed problems too!
-rwxr-xr-x | web/photo.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/photo.cgi b/web/photo.cgi index 54fa1647a..e011d8037 100755 --- a/web/photo.cgi +++ b/web/photo.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: photo.cgi,v 1.1 2006-10-10 15:53:05 matthew Exp $ +# $Id: photo.cgi,v 1.2 2007-03-26 12:12:46 matthew Exp $ use strict; require 5.8.0; @@ -39,7 +39,7 @@ sub main { -expires => '+1y' ); my $id = $q->param('id') || return; my $problem = dbh()->selectrow_arrayref( - "select photo from problem where id=? and state='confirmed' + "select photo from problem where id=? and state in ('confirmed', 'fixed') and photo is not null", {}, $id); return unless $problem; my $photo = $problem->[0]; |