Update html.formticket.class.php

This commit is contained in:
Laurent Destailleur 2020-06-06 21:23:35 +02:00 committed by GitHub
parent 68bb552dcc
commit 30c6ae394b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -991,7 +991,9 @@ class FormTicket
// MESSAGE
$defaultmessage="";
if ($arraydefaultmessage && $arraydefaultmessage->content) $defaultmessage = $arraydefaultmessage->content;
if (is_array($arraydefaultmessage) && count($arraydefaultmessage) > 0 && $arraydefaultmessage->content) {
$defaultmessage=$arraydefaultmessage->content;
}
$defaultmessage=str_replace('\n', "\n", $defaultmessage);
// Deal with format differences between message and signature (text / HTML)