diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-03-03 14:03:12 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-03-03 14:03:12 +0000 |
commit | 8033a55579ccecb92c781528fdeebd666f077978 (patch) | |
tree | fe81105a9c1a6c85b3b055000c90255efc240cd6 | |
parent | 43a0d8f0d18f03c39fb6fe2a0c9649a57ccbd265 (diff) |
Work if precise name given too.
-rwxr-xr-x | web/reports.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/reports.cgi b/web/reports.cgi index 6c26de91d..69a8d8240 100755 --- a/web/reports.cgi +++ b/web/reports.cgi @@ -83,7 +83,7 @@ sub main { $area_name = $one_council->{name}; } else { foreach (keys %$areas) { - if ($areas->{$_}->{name} =~ /^\Q$q_council\E (Borough|City|District|County) Council$/) { + if ($areas->{$_}->{name} eq $q_council || $areas->{$_}->{name} =~ /^\Q$q_council\E (Borough|City|District|County) Council$/) { $one_council = $areas->{$_}; $area_type = $areas->{$_}->{type}; $area_name = $q_council; |