aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/DB')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 449bb5be8..237785820 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -363,7 +363,8 @@ around lastupdate => $stz;
around service => sub {
my ( $orig, $self ) = ( shift, shift );
- my $s = $self->$orig(@_);
+ # service might be undef if e.g. unsaved code report
+ my $s = $self->$orig(@_) || "";
$s =~ s/_/ /g;
return $s;
};