N°4211 - Remove DBObject::Reload calls added in 3.0.0 - Fix User cache when user not in DB

This commit is contained in:
Eric Espie
2021-09-14 15:00:16 +02:00
parent be81d1f6c0
commit 2ab0fab051

View File

@@ -1843,7 +1843,7 @@ class UserRights
self::$m_aCacheUsers = array('internal' => array(), 'external' => array());
}
if (!isset(self::$m_aCacheUsers[$sAuthentication][$sLogin]))
if (!array_key_exists($sLogin, self::$m_aCacheUsers[$sAuthentication]))
{
switch($sAuthentication)
{