FIX php8 compatibility
This commit is contained in:
parent
de97379f3f
commit
9c53fe07a0
@ -207,7 +207,7 @@ class modPropale extends DolibarrModules
|
|||||||
// Add multicompany field
|
// Add multicompany field
|
||||||
if (!empty($conf->global->MULTICOMPANY_ENTITY_IN_EXPORT_IF_SHARED)) {
|
if (!empty($conf->global->MULTICOMPANY_ENTITY_IN_EXPORT_IF_SHARED)) {
|
||||||
$nbofallowedentities = count(explode(',', getEntity('propal')));
|
$nbofallowedentities = count(explode(',', getEntity('propal')));
|
||||||
if (!empty($conf->multicompany->enabled) && $nbofallowedentities > 1) {
|
if (isModEnabled('multicompany') && $nbofallowedentities > 1) {
|
||||||
$this->export_fields_array[$r]['c.entity'] = 'Entity';
|
$this->export_fields_array[$r]['c.entity'] = 'Entity';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user