FIX php8 compatibility
This commit is contained in:
parent
352382bced
commit
5877a85284
@ -46,7 +46,7 @@ function check_user_password_ldap($usertotest, $passwordtotest, $entitytotest)
|
|||||||
|
|
||||||
// Force master entity in transversal mode
|
// Force master entity in transversal mode
|
||||||
$entity = $entitytotest;
|
$entity = $entitytotest;
|
||||||
if (!empty($conf->multicompany->enabled) && !empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
|
if (isModEnabled('multicompany') && !empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
|
||||||
$entity = 1;
|
$entity = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ function check_user_password_ldap($usertotest, $passwordtotest, $entitytotest)
|
|||||||
unset($usertmp);
|
unset($usertmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($conf->multicompany->enabled)) { // We must check entity (even if sync is not active)
|
if (isModEnabled('multicompany')) { // We must check entity (even if sync is not active)
|
||||||
global $mc;
|
global $mc;
|
||||||
|
|
||||||
$usertmp = new User($db);
|
$usertmp = new User($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user