aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xweb/report.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/report.cgi b/web/report.cgi
index ab53fa9a2..228374be2 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.22 2007-05-11 09:20:50 matthew Exp $
+# $Id: report.cgi,v 1.23 2007-05-11 09:45:03 matthew Exp $
use strict;
require 5.8.0;
@@ -57,7 +57,10 @@ sub main {
", @params);
my $fourweeks = 4*7*24*60*60;
foreach my $row (@$problem) {
- my ($council, $missing) = $row->{council} =~ /^(.*?)\|(.*)$/;
+ my $council = $row->{council};
+ $council =~ s/\|.*//;
+ my $missing;
+ # my ($council, $missing) = $row->{council} =~ /^(.*?)\|(.*)$/;
my @council = split /,/, $council;
my $type = ($row->{duration} > 2 * $fourweeks)
? 'unknown'