From bb52b8fcbddc44b44f302c6dd51cec0fdc63be87 Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Thu, 8 Sep 2011 18:11:56 +0200 Subject: [PATCH] Fix project selection in header --- application/views/header.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): ?> - +