Fixed pandora console (mobile version). Ticket#2893

This commit is contained in:
Arturo Gonzalez Diaz 2015-10-15 13:45:51 +02:00
parent 23d459a716
commit 4a0f350a3b
2 changed files with 9 additions and 3 deletions

View File

@ -25,10 +25,11 @@ class System {
function __construct() {
$this->loadConfig();
$session_id = session_id();
DB::getInstance($this->getConfig('db_engine', 'mysql'));
if (empty($session_id)) {
session_start();
}
$this->session = $_SESSION;
session_write_close();
}

View File

@ -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');