Minor fixes
This commit is contained in:
parent
f583a54863
commit
f464c6fb1c
1 changed files with 2 additions and 2 deletions
|
|
@ -310,7 +310,7 @@ class NinjaMailerJob implements ShouldQueue
|
|||
{
|
||||
|
||||
/* If we are migrating data we don't want to fire any emails */
|
||||
if($this->nmo->company->is_disabled && !$this->override)
|
||||
if($this->company->is_disabled && !$this->override)
|
||||
return true;
|
||||
|
||||
/* On the hosted platform we set default contacts a @example.com email address - we shouldn't send emails to these types of addresses */
|
||||
|
|
@ -326,7 +326,7 @@ class NinjaMailerJob implements ShouldQueue
|
|||
return true;
|
||||
|
||||
/* To handle spam users we drop all emails from flagged accounts */
|
||||
if(Ninja::isHosted() && $this->company->account && $this->nmo->company->account->is_flagged)
|
||||
if(Ninja::isHosted() && $this->company->account && $this->company->account->is_flagged)
|
||||
return true;
|
||||
|
||||
/* Ensure the user has a valid email address */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue