aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm6
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