FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-28 13:53:31 +02:00
parent b43527de8f
commit aca217a585

View File

@ -149,7 +149,7 @@ class EmailSenderProfile extends CommonObject
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID)) {
$this->fields['rowid']['visible'] = 0;
}
if (empty($conf->multicompany->enabled)) {
if (!isModEnabled('multicompany')) {
$this->fields['entity']['enabled'] = 0;
}
}