mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for null contact
This commit is contained in:
parent
b9c198f38e
commit
0ca668f7ff
@ -36,7 +36,7 @@ class SendEmail
|
||||
|
||||
$contact = $this->payment->client->contacts()->first();
|
||||
|
||||
if ($contact->email)
|
||||
if ($contact?->email)
|
||||
EmailPayment::dispatch($this->payment, $this->payment->company, $contact);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user