mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 20:27:07 +09:00
Prevent fatal errors on missing message authors (#1706)
This commit is contained in:
1 parent
48c69ddb70
commit
c4c67be42f
1 file changed
+4
@@ -688,6 +688,10 @@ class Service implements \FOSSBilling\InjectionAwareInterface
|
||||
$author = $this->di['db']->load('Client', $model->client_id);
|
||||
}
|
||||
|
||||
if(!$author){
|
||||
return [];
|
||||
}
|
||||
|
||||
return [
|
||||
'name' => $author->getFullName(),
|
||||
'email' => $author->email,
|
||||
|
||||
Reference in new issue
Block a user