mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Added field status in the primary key array of model MsgStatus_model
- Changes in the logic of the messaging system, now every message status is a new entry in the table tbl_msg_status
This commit is contained in:
@@ -24,7 +24,7 @@ class Recipient_model extends DB_Model
|
||||
*/
|
||||
public function getMessages($kontaktType, $sent, $limit = null)
|
||||
{
|
||||
// Check wrights
|
||||
// Check rights
|
||||
if (! $this->fhc_db_acl->isBerechtigt($this->getBerechtigungKurzbz("public.tbl_msg_recipient"), "s"))
|
||||
return $this->_error(lang("fhc_".FHC_NORIGHT)." -> ".$this->getBerechtigungKurzbz("public.tbl_msg_recipient"), FHC_MODEL_ERROR);
|
||||
if (! $this->fhc_db_acl->isBerechtigt($this->getBerechtigungKurzbz("public.tbl_msg_message"), "s"))
|
||||
@@ -67,8 +67,6 @@ class Recipient_model extends DB_Model
|
||||
array_push($parametersArray, $limit);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Get data of the messages to sent
|
||||
$result = $this->db->query($query, $parametersArray);
|
||||
if (is_object($result))
|
||||
|
||||
Reference in New Issue
Block a user