From 3ac2b061fa1050f53a1d6cf178f651e18a207610 Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Mon, 1 Aug 2011 14:54:04 +0200 Subject: [PATCH] Use messaging system instead of insertion into views --- application/controllers/projects.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/controllers/projects.php b/application/controllers/projects.php index 63532c4..ca4540b 100644 --- a/application/controllers/projects.php +++ b/application/controllers/projects.php @@ -105,6 +105,10 @@ class Projects extends CI_Controller { public function detail($prj_id) { $project = $this->project->getById($prj_id); + $this->messages->add('Das Projekt konnte nicht geladen werden.', 'error'); + redirect('/projects/', 301); + } + $this->session->set_userdata('active_project', $prj_id); $trials = $this->trial->getByProjectId($prj_id);