From 2e426d373de1dbab5ebed90935ec7394f83c6e40 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 4 Nov 2021 17:25:47 +0100 Subject: [PATCH] Revert behavior change in \UserRights::FindUser Was made in 2ab0fab0 by mistake --- core/userrights.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index 941a8530b..d55358052 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -1860,14 +1860,14 @@ class UserRights self::$m_aCacheUsers = array('internal' => array(), 'external' => array()); } - if (!array_key_exists($sLogin, self::$m_aCacheUsers[$sAuthentication])) + if (!isset($sLogin, self::$m_aCacheUsers[$sAuthentication])) { switch($sAuthentication) { case 'external': $sBaseClass = 'UserExternal'; break; - + case 'internal': $sBaseClass = 'UserInternal'; break;