Fixed problems with session in pandora mobile verison. Tiquet: #3656

(cherry picked from commit decb820659)
This commit is contained in:
m-lopez-f 2016-06-01 12:54:00 +02:00
parent 650b42966f
commit 463f96f123
1 changed files with 5 additions and 6 deletions

View File

@ -45,14 +45,13 @@ class User {
if ($this->logged) {
$system = System::getInstance();
$system->setSession('user', $this);
//hack to compatibility with pandora
global $config;
$config['id_user'] = $this->user;
if (!$this->needDoubleAuth) {
//hack to compatibility with pandora
global $config;
$config['id_user'] = $this->user;
}
$system->setSessionBase('id_usuario', $this->user);
$system->setSession('user', $this);
}
}