Prevent fatal errors on missing message authors (#1706)

This commit is contained in:
Belle Aerni authored and GitHub committed 2023-10-10 07:43:54 +02:00
1 parent 48c69ddb70
commit c4c67be42f
1 file changed
+4
+4
View File
@@ -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,