diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-06 17:02:05 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-06 17:02:05 +0100 |
commit | c0a624eedf079ec0337daca1f5f621fd756890f6 (patch) | |
tree | 5b823fde7aa87621edf4ba8d916c2be5473267e5 | |
parent | 7c234d71c7691ccbd419032bee5e737146d82368 (diff) |
[Oxfordshire] Fix bug downloading All Inspectors RDI.
-rw-r--r-- | perllib/FixMyStreet/Integrations/ExorRDI.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Integrations/ExorRDI.pm b/perllib/FixMyStreet/Integrations/ExorRDI.pm index b0e581f84..bf12c45b0 100644 --- a/perllib/FixMyStreet/Integrations/ExorRDI.pm +++ b/perllib/FixMyStreet/Integrations/ExorRDI.pm @@ -23,7 +23,8 @@ has user => ( is => 'ro', coerce => sub { return $_[0] if blessed($_[0]) && $_[0]->isa('FixMyStreet::DB::Result::User'); - FixMyStreet::DB->resultset('User')->find( { id => $_[0] } ); + FixMyStreet::DB->resultset('User')->find( { id => $_[0] } ) + if $_[0]; }, ); |