1
0
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:
David Bomba 2022-08-04 16:41:56 +10:00
parent b9c198f38e
commit 0ca668f7ff

View File

@ -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);
}