diff options
author | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-09-30 11:17:05 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2010-09-30 11:17:05 +0100 |
commit | 0685fe70a5c20257e03c4d8b13d4d30d5f46514e (patch) | |
tree | 7c9b4d08a06f061fc9fe9044058c6b56c5b6363d /perllib/Problems.pm | |
parent | 40ec666cabe1c7796abac1a7bdbe5e266e6dfc15 (diff) |
Don't auto-create hash if there was no row returned.
Diffstat (limited to 'perllib/Problems.pm')
-rw-r--r-- | perllib/Problems.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Problems.pm b/perllib/Problems.pm index 161306845..788074e37 100644 --- a/perllib/Problems.pm +++ b/perllib/Problems.pm @@ -223,7 +223,7 @@ sub fetch_problem { from problem where id=? and state in ('confirmed','fixed', 'hidden') $site_restriction", {}, $id ); - $p->{service} =~ s/_/ /g; + $p->{service} =~ s/_/ /g if $p && $p->{service}; return $p; } |