Merge pull request #8343 from atm-maxime/develop

Fix mail send
This commit is contained in:
Laurent Destailleur 2018-03-11 18:11:37 +01:00 committed by GitHub
commit baf6fc6a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -859,7 +859,7 @@ class FormMail extends Form
if (! GETPOST('modelselected','alpha') || GETPOST('modelmailselected') != '-1')
{
if ($arraydefaultmessage && $arraydefaultmessage->content) {
$defaultmessage = $arraydefaultmessage['content'];
$defaultmessage = $arraydefaultmessage->content;
} elseif (! is_numeric($this->withbody)) {
$defaultmessage = $this->withbody;
}