* Fix bug of project session.
This commit is contained in:
@@ -120,7 +120,7 @@ class projectModel extends model
|
||||
if(defined('TUTORIAL')) return $projectID;
|
||||
|
||||
if($projectID == 0 and $this->cookie->lastProject) $projectID = $this->cookie->lastProject;
|
||||
if($projectID == 0 and $this->session->project == '') $projectID = key($projects);
|
||||
if(($projectID == 0 and $this->session->project == '') or !isset($projects[$projectID])) $projectID = key($projects);
|
||||
$this->session->set('project', (int)$projectID, $this->app->tab);
|
||||
|
||||
if(!isset($projects[$this->session->project]))
|
||||
|
||||
Reference in New Issue
Block a user