diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-12-20 09:57:30 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-12-20 09:57:30 +0000 |
commit | 913509a89289aa34148e2fe7a711db106a557d8b (patch) | |
tree | 2743d8b861ccdbae3fb33b449812514ddb4c2c98 /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 0177ac9e5ed3752f8dc1f466777fe9aac10026d5 (diff) |
Minor admin text tweaks.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 6cfe45bc0..1174223b5 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -397,7 +397,7 @@ Returns an arrayref of bodies to which a report was sent. sub bodies($) { my $self = shift; - return [] unless $self->bodies_str; + return {} unless $self->bodies_str; (my $bodies = $self->bodies_str) =~ s/\|.*$//; my @bodies = split( /,/, $bodies ); @bodies = FixMyStreet::App->model('DB::Body')->search({ id => \@bodies })->all; |