diff --git a/application/views/header.php b/application/views/header.php index ad1acce..23ea386 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -36,6 +36,8 @@ // get the active project, if there is one if ($this->input->get('active_project')) $active_project = $this->project->getById($this->input->get('active_project')); + else if (isset($project['id'])) + $active_project = $project; else $active_project = false; @@ -46,7 +48,7 @@ endif; foreach ($this->project->getAll() as $project): ?> - +