diff --git a/htdocs/core/class/conf.class.php b/htdocs/core/class/conf.class.php index cf54151d2d6..e6f604189d3 100644 --- a/htdocs/core/class/conf.class.php +++ b/htdocs/core/class/conf.class.php @@ -849,7 +849,7 @@ class Conf if (!empty($this->global->LDAP_SYNCHRO_ACTIVE)) { if ($this->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap') { $this->global->LDAP_SYNCHRO_ACTIVE = 1; - } else if ($this->global->LDAP_SYNCHRO_ACTIVE == 'ldap2dolibarr') { + } elseif ($this->global->LDAP_SYNCHRO_ACTIVE == 'ldap2dolibarr') { $this->global->LDAP_SYNCHRO_ACTIVE = 2; } } diff --git a/htdocs/core/class/html.formldap.class.php b/htdocs/core/class/html.formldap.class.php index 1f9d6591560..04c204edfd2 100644 --- a/htdocs/core/class/html.formldap.class.php +++ b/htdocs/core/class/html.formldap.class.php @@ -134,7 +134,7 @@ class FormLdap ); if (is_array($exclude) && !empty($exclude)) { - foreach($exclude as $value) { + foreach ($exclude as $value) { if (array_key_exists($value, $arraylist)) { unset($arraylist[$value]); }