Tix fypo in projects controller
This commit is contained in:
@@ -105,6 +105,7 @@ class Projects extends CI_Controller {
|
|||||||
|
|
||||||
public function detail($prj_id) {
|
public function detail($prj_id) {
|
||||||
$project = $this->project->getById($prj_id);
|
$project = $this->project->getById($prj_id);
|
||||||
|
if(!$project) {
|
||||||
$this->messages->add('Das Projekt konnte nicht geladen werden.', 'error');
|
$this->messages->add('Das Projekt konnte nicht geladen werden.', 'error');
|
||||||
redirect('/projects/', 301);
|
redirect('/projects/', 301);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user