Fixed pandora console (mobile version). Ticket#2893
This commit is contained in:
parent
23d459a716
commit
4a0f350a3b
|
@ -25,10 +25,11 @@ class System {
|
|||
|
||||
function __construct() {
|
||||
$this->loadConfig();
|
||||
|
||||
$session_id = session_id();
|
||||
DB::getInstance($this->getConfig('db_engine', 'mysql'));
|
||||
|
||||
session_start();
|
||||
if (empty($session_id)) {
|
||||
session_start();
|
||||
}
|
||||
$this->session = $_SESSION;
|
||||
session_write_close();
|
||||
}
|
||||
|
|
|
@ -46,6 +46,11 @@ $system = System::getInstance();
|
|||
require_once($system->getConfig('homedir').'/include/constants.php');
|
||||
|
||||
$user = User::getInstance();
|
||||
|
||||
if (!is_object($user) && gettype($user) == 'object') {
|
||||
$user = unserialize (serialize ($user));
|
||||
}
|
||||
|
||||
$user->saveLogin();
|
||||
|
||||
$page = $system->getRequest('page', 'home');
|
||||
|
|
Loading…
Reference in New Issue