diff --git a/application/controllers/trials.php b/application/controllers/trials.php index ff75a2e..6af1cd2 100644 --- a/application/controllers/trials.php +++ b/application/controllers/trials.php @@ -100,7 +100,7 @@ class Trials extends CI_Controller { redirect('/trial/detail/' . $result, 'refresh'); } else { - $tpl['error'][] = "Der Versuch konnte nicht gespeichert werden."; + $this->messages->add('Der Versuch konnte nicht gespeichert werden.', 'error'); $this->load->view('trial/new', $tpl); } }