From 1ea2a2b0fdabb1c1be5ac2e4f385cf2e680ef351 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Mar 2026 03:20:11 +0100 Subject: [PATCH] Clean code --- htdocs/core/class/conf.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index 1d099a96abe..d85c18c123e 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -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; }