diff options
-rwxr-xr-x | bin/send-reports | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/send-reports b/bin/send-reports index 7c6d0f7a0..c62c06c80 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: send-reports,v 1.33 2007-04-19 14:35:41 matthew Exp $ +# $Id: send-reports,v 1.34 2007-04-29 18:00:28 matthew Exp $ use strict; require 5.8.0; @@ -65,8 +65,10 @@ foreach my $row (@$unsent) { and area_id=? AND category=?", {}, $council, $row->{category}); unless ($confirmed) { $all_confirmed = 0; - $notgot{$council_email}{$row->{category}}++; - $note{$council_email}{$row->{category}} = $note; + my $cat = $row->{category} or 'N/A'; + $note = 'Council category deleted' unless $note; + $notgot{$council_email}{$cat}++; + $note{$council_email}{$cat} = $note; } push @to, [ $council_email, $name ]; push @dear, $name; |