aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/EmptyHomes.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-13 01:35:04 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-13 01:35:04 +0100
commite754a8d985d68daa345e58deddfca9ecb2ba09ba (patch)
tree97946516c77e37732a470e5eed202e9ddd93ccf6 /perllib/FixMyStreet/Cobrand/EmptyHomes.pm
parent24a3d1c80caf08719463bee762dd759955683913 (diff)
Fix a couple of small bugs.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/EmptyHomes.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/EmptyHomes.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/EmptyHomes.pm b/perllib/FixMyStreet/Cobrand/EmptyHomes.pm
index 2199d660e..4a93bcb20 100644
--- a/perllib/FixMyStreet/Cobrand/EmptyHomes.pm
+++ b/perllib/FixMyStreet/Cobrand/EmptyHomes.pm
@@ -148,9 +148,9 @@ sub council_rss_alert_options {
foreach (values %$all_councils) {
$_->{short_name} = $self->short_name( $_ );
( $_->{id_name} = $_->{short_name} ) =~ tr/+/_/;
- if ($_->{type} eq 'DIS') {
+ if ($councils{$_->{type}}) {
$council = $_;
- } elsif ($_->{type} eq 'DIW') {
+ } else {
$ward = $_;
}
}