aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2007-05-09 16:35:04 +0000
committermatthew <matthew>2007-05-09 16:35:04 +0000
commit860bcc53eebfe839056206a78116f2656f154b12 (patch)
treef5f40024eed5a8129b8524d0de3e10c58dc19238
parent12b613c2ed2aaaacb99124de029fe4055ee5d7e2 (diff)
Typo.
-rwxr-xr-xweb/report.cgi7
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 ];