fixed profile check
This commit is contained in:
parent
2c14a5ae61
commit
b3a5e0603e
|
@ -1723,7 +1723,7 @@ class accountContainer {
|
||||||
$profileCookieKey = 'defaultProfile_' . $this->get_type()->getId();
|
$profileCookieKey = 'defaultProfile_' . $this->get_type()->getId();
|
||||||
if (!empty($_COOKIE[$profileCookieKey])) {
|
if (!empty($_COOKIE[$profileCookieKey])) {
|
||||||
$cookieProfileName = $_COOKIE[$profileCookieKey];
|
$cookieProfileName = $_COOKIE[$profileCookieKey];
|
||||||
if (\LAM\PROFILES\profileExists($profileName, $this->get_type()->getId())) {
|
if (\LAM\PROFILES\profileExists($cookieProfileName, $this->get_type()->getId())) {
|
||||||
$profileName = $cookieProfileName;
|
$profileName = $cookieProfileName;
|
||||||
$this->lastLoadedProfile = $cookieProfileName;
|
$this->lastLoadedProfile = $cookieProfileName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue