MessageLib -> sendMessage: if no sender_id is specified the system default person_id will be used

This commit is contained in:
bison-paolo
2016-10-04 18:19:39 +02:00
parent 863d6af4eb
commit 1feec909cb
3 changed files with 5 additions and 6 deletions
+3 -1
View File
@@ -199,7 +199,9 @@ class MessageLib
public function sendMessage($sender_id, $receiver_id, $subject, $body, $priority = PRIORITY_NORMAL, $relationmessage_id = null, $oe_kurzbz = null)
{
if (!is_numeric($sender_id))
return $this->_error('', MSG_ERR_INVALID_SENDER_ID);
{
$sender_id = $this->ci->config->item('system_person_id');
}
$receivers = null;