mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
- MessageLib fix: if sending an email fails inside of method sendMessageVorlage,
it will no longer rolls back the database - Added parameter all in method getMessagesByPerson of model Message_model
This commit is contained in:
@@ -97,6 +97,11 @@ class Message_model extends DB_Model
|
||||
) s ON (m.message_id = s.message_id AND r.person_id = s.person_id)
|
||||
WHERE r.person_id = ?";
|
||||
|
||||
if ($all != "true")
|
||||
{
|
||||
$sql .= " AND (s.status < 3 OR s.status IS NULL)";
|
||||
}
|
||||
|
||||
$result = $this->db->query($sql, array($person_id));
|
||||
if (is_object($result))
|
||||
return $this->_success($result->result());
|
||||
|
||||
Reference in New Issue
Block a user