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/DB/Result/Problem.pm | |
parent | 0529c29f5b0a196a2578b565f1eed948c2ef608e (diff) |
Return an arrayref, as TT doesn't like empty lists.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index ab05c3157..f2f130390 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -241,16 +241,16 @@ sub confirm { =head2 councils -Returns an array of councils to which a report was sent. +Returns an arrayref of councils to which a report was sent. =cut sub councils { my $self = shift; - return () unless $self->council; + return [] unless $self->council; (my $council = $self->council) =~ s/\|.*$//; my @council = split( /,/, $council ); - return @council; + return \@council; } =head2 url |