From 1b3895723535b9fde5a046f53cf2a4c98402c40c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 9 Jan 2023 17:38:41 +0100 Subject: [PATCH] LSsession::loadLSprofiles(): reset current LSprofiles on each call Be sure to reset current LSprofiles before (re)loading it. --- src/includes/class/class.LSsession.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/includes/class/class.LSsession.php b/src/includes/class/class.LSsession.php index bf27f297..49f6a34c 100644 --- a/src/includes/class/class.LSsession.php +++ b/src/includes/class/class.LSsession.php @@ -2123,6 +2123,7 @@ class LSsession { return false; } self :: log_trace("loadLSprofiles(): Current LDAP server LSprofile configuration: ".varDump(self :: $ldapServer['LSprofiles'])); + self :: $LSprofiles = array(); foreach (self :: $ldapServer['LSprofiles'] as $profile => $profileInfos) { if (!is_array($profileInfos)) { self :: log_warning("loadLSprofiles(): Invalid configuration for LSprofile '$profile' (must be an array).");