FIX syntax error
This commit is contained in:
parent
317060d915
commit
e839d9da02
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user