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