mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for ninjamailer
This commit is contained in:
parent
e630c54ddf
commit
60d9a33f0d
@ -90,7 +90,7 @@ class NinjaMailerJob implements ShouldQueue
|
||||
$this->company = Company::where('company_key', $this->nmo->company->company_key)->first();
|
||||
|
||||
/* If any pre conditions fail, we return early here */
|
||||
if($this->preFlightChecksFail())
|
||||
if(!$this->company || $this->preFlightChecksFail())
|
||||
return;
|
||||
|
||||
/* Set the email driver */
|
||||
|
Loading…
x
Reference in New Issue
Block a user