Skip to content

Commit

Permalink
Merge pull request #9989 from frederic34/patch-16
Browse files Browse the repository at this point in the history
Update actions_ticket.class.php
  • Loading branch information
eldy committed Nov 10, 2018
2 parents bd78ea1 + c2ee9ba commit 2946ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/ticket/class/actions_ticket.class.php
Expand Up @@ -845,11 +845,11 @@ private function newMessagePublic($user, &$action)
}

if (!$error) {
$object->message = GETPOST("message");
$object->message = (string) GETPOST("message");
$id = $object->createTicketMessage($user);
if ($id <= 0) {
$error++;
$this->errors = $object->error;
$this->error = $object->error;
$this->errors = $object->errors;
$action = 'add_message';
}
Expand Down

0 comments on commit 2946ca6

Please sign in to comment.