Clean code

This commit is contained in:
Laurent Destailleur 2026-03-02 03:20:11 +01:00
parent 848c5b9482
commit 1ea2a2b0fd

View file

@ -1392,11 +1392,11 @@ class Conf extends stdClass
}
}
// For backward compatibility
if (!empty($this->global->LDAP_MEMBER_ACTIVE) && $this->global->LDAP_MEMBER_ACTIVE == 'ldap2dolibarr') {
if (getDolGlobalString('LDAP_MEMBER_ACTIVE') == 'ldap2dolibarr') {
$this->global->LDAP_MEMBER_ACTIVE = 2;
}
// For backward compatibility
if (!empty($this->global->LDAP_MEMBER_TYPE_ACTIVE) && $this->global->LDAP_MEMBER_TYPE_ACTIVE == 'ldap2dolibarr') {
if (getDolGlobalString('LDAP_MEMBER_TYPE_ACTIVE') == 'ldap2dolibarr') {
$this->global->LDAP_MEMBER_TYPE_ACTIVE = 2;
}