FIX php8 compatibility
This commit is contained in:
parent
c278fdd7a6
commit
8c59c7f4be
@ -2421,7 +2421,7 @@ function dol_check_secure_access_document($modulepart, $original_file, $entity,
|
||||
return 'ErrorBadParameter';
|
||||
}
|
||||
if (empty($entity)) {
|
||||
if (empty($conf->multicompany->enabled)) {
|
||||
if (!isModEnabled('multicompany')) {
|
||||
$entity = 1;
|
||||
} else {
|
||||
$entity = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user