diff --git a/application/models/system/MessageToken_model.php b/application/models/system/MessageToken_model.php index 64cfe4996..2398bf57a 100644 --- a/application/models/system/MessageToken_model.php +++ b/application/models/system/MessageToken_model.php @@ -1,27 +1,16 @@ config->load('message'); - - // Load return message helper - $this->load->helper('hlp_message'); - - // Loads the database object - $this->load->database(); } /** diff --git a/application/models/system/PersonLog_model.php b/application/models/system/PersonLog_model.php index 325fba88e..7a66958b8 100644 --- a/application/models/system/PersonLog_model.php +++ b/application/models/system/PersonLog_model.php @@ -1,19 +1,13 @@ load->database(); $this->dbTable = 'system.tbl_log'; } @@ -91,7 +85,7 @@ class PersonLog_model extends CI_Model $this->db->order_by('zeitpunkt', 'DESC'); $this->db->order_by('log_id', 'DESC'); - $where = "logtype_kurzbz = 'Processstate' + $where = "logtype_kurzbz = 'Processstate' AND person_id=".$this->db->escape($person_id)." AND zeitpunkt >= now()";