LSsession::loadLSprofiles(): reset current LSprofiles on each call

Be sure to reset current LSprofiles before (re)loading it.
This commit is contained in:
Benjamin Renard 2023-01-09 17:38:41 +01:00
parent f4f39d967e
commit 1b38957235

View file

@ -2123,6 +2123,7 @@ class LSsession {
return false; return false;
} }
self :: log_trace("loadLSprofiles(): Current LDAP server LSprofile configuration: ".varDump(self :: $ldapServer['LSprofiles'])); self :: log_trace("loadLSprofiles(): Current LDAP server LSprofile configuration: ".varDump(self :: $ldapServer['LSprofiles']));
self :: $LSprofiles = array();
foreach (self :: $ldapServer['LSprofiles'] as $profile => $profileInfos) { foreach (self :: $ldapServer['LSprofiles'] as $profile => $profileInfos) {
if (!is_array($profileInfos)) { if (!is_array($profileInfos)) {
self :: log_warning("loadLSprofiles(): Invalid configuration for LSprofile '$profile' (must be an array)."); self :: log_warning("loadLSprofiles(): Invalid configuration for LSprofile '$profile' (must be an array).");