Fixed regression introduced in [3852] : setup not working anymore ($_SESSION is unset and a notice is issued, which can prevent the install from completing, depending on your PHP error level).

SVN:trunk[3891]
This commit is contained in:
Romain Quetiez
2016-01-28 11:11:12 +00:00
parent e7759aa79a
commit b978a5d219

View File

@@ -1108,12 +1108,18 @@ class UserRights
public static function _InitSessionCache()
{
// Cache data about the current user into the session
$_SESSION['profile_list'] = self::ListProfiles();
if (isset($_SESSION))
{
$_SESSION['profile_list'] = self::ListProfiles();
}
}
public static function _ResetSessionCache()
{
unset($_SESSION['profile_list']);
if (isset($_SESSION['profile_list']))
{
unset($_SESSION['profile_list']);
}
}
}