Fixing style errors.

This commit is contained in:
stickler-ci 2022-08-20 11:16:54 +00:00
parent e8faeabbe1
commit 73321f0812

View File

@ -96,7 +96,7 @@ class Contacts extends DolibarrApi
if ($includeroles) { if ($includeroles) {
$this->contact->fetchRoles(); $this->contact->fetchRoles();
} }
if (isModEnabled('mailing')) { if (isModEnabled('mailing')) {
$this->contact->getNoEmail(); $this->contact->getNoEmail();
} }
@ -144,7 +144,7 @@ class Contacts extends DolibarrApi
if ($includeroles) { if ($includeroles) {
$this->contact->fetchRoles(); $this->contact->fetchRoles();
} }
if (isModEnabled('mailing')) { if (isModEnabled('mailing')) {
$this->contact->getNoEmail(); $this->contact->getNoEmail();
} }
@ -330,7 +330,7 @@ class Contacts extends DolibarrApi
} }
$this->contact->$field = $value; $this->contact->$field = $value;
} }
if (isModEnabled('mailing') && !empty($this->contact->email)) { if (isModEnabled('mailing') && !empty($this->contact->email)) {
$this->contact->setNoEmail($this->contact->no_email); $this->contact->setNoEmail($this->contact->no_email);
} }