Fixed controller message parameters validation

This commit is contained in:
paolo
2016-06-21 15:21:51 +02:00
parent 5a5472257a
commit 971e4ed6de
@@ -58,8 +58,8 @@ class Message extends APIv1_Controller
$this->post()['person_id'],
$this->post()['subject'],
$this->post()['body'],
$this->post()['priority'],
$this->post()['relationmessage_id'],
PRIORITY_NORMAL,
NULL,
$this->post()['oe_kurzbz']
);
@@ -73,7 +73,8 @@ class Message extends APIv1_Controller
private function _validate($message = null)
{
if (!isset($message['person_id']) || !isset($message['subject']) || !isset($message['body']))
if (!isset($message['person_id']) || !isset($message['subject']) ||
!isset($message['body']) || !isset($message['oe_kurzbz']))
{
return false;
}