FIX syntax error

This commit is contained in:
Regis Houssin 2021-11-12 16:56:26 +01:00
parent 317060d915
commit e839d9da02
2 changed files with 2 additions and 2 deletions

View File

@ -849,7 +849,7 @@ class Conf
if (!empty($this->global->LDAP_SYNCHRO_ACTIVE)) { if (!empty($this->global->LDAP_SYNCHRO_ACTIVE)) {
if ($this->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap') { if ($this->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap') {
$this->global->LDAP_SYNCHRO_ACTIVE = 1; $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; $this->global->LDAP_SYNCHRO_ACTIVE = 2;
} }
} }

View File

@ -134,7 +134,7 @@ class FormLdap
); );
if (is_array($exclude) && !empty($exclude)) { if (is_array($exclude) && !empty($exclude)) {
foreach($exclude as $value) { foreach ($exclude as $value) {
if (array_key_exists($value, $arraylist)) { if (array_key_exists($value, $arraylist)) {
unset($arraylist[$value]); unset($arraylist[$value]);
} }