diff options
-rwxr-xr-x | web/report.cgi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/report.cgi b/web/report.cgi index fa557f9cf..4e800388c 100755 --- a/web/report.cgi +++ b/web/report.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: report.cgi,v 1.11 2007-05-09 16:30:36 matthew Exp $ +# $Id: report.cgi,v 1.12 2007-05-09 16:35:04 matthew Exp $ use strict; require 5.8.0; @@ -58,9 +58,8 @@ sub main { my $council = $row->{council} || ''; $council =~ s/\|.*//; my @council = split /,/, $council; - my $duration = $row->{duration}; - $age = ($age > 4*7*24*60*60) ? 'old' : 'new'; - $duration = ($duration > 4*7*24*60*60) ? 'old' : 'new'; + my $age = ($row->{age} > 4*7*24*60*60) ? 'old' : 'new'; + my $duration = ($row->{duration} > 4*7*24*60*60) ? 'old' : 'new'; foreach (@council) { push @{$out{$_}{$row->{state}}{$age}{$duration}}, [ $row->{id}, $row->{title}, $row->{detail}, scalar @council ]; |