diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-10 18:31:31 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-10 18:31:31 +0100 |
commit | 436274a1b69c5d25488492ecd70e4b4bee204cc1 (patch) | |
tree | 3508073ef5f3a024122691aa8491d28c0a7facb9 /perllib/FixMyStreet/App/Controller/Reports.pm | |
parent | 0529c29f5b0a196a2578b565f1eed948c2ef608e (diff) |
Return an arrayref, as TT doesn't like empty lists.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index f2bb13ae4..3c1480c0f 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -282,7 +282,7 @@ sub group_problems : Private { } } else { # Add to councils it was sent to - foreach ($row->councils) { + foreach (@{ $row->councils }) { next if $c->stash->{council} && $_ != $c->stash->{council}->{id}; add_row($row, $_, \%fixed, \%open); } |