diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index f67d111e453..2c7cc0be7fe 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -586,9 +586,9 @@ class FormMail if (count($arraydefaultmessage) > 0 && $arraydefaultmessage['content']) { $defaultmessage=$arraydefaultmessage['content']; $from_template=true; - + } elseif (! is_numeric($this->withbody)) { + $defaultmessage=$this->withbody; } - elseif (! is_numeric($this->withbody)) $defaultmessage=$this->withbody; // Complete substitution array if (! empty($conf->paypal->enabled) && ! empty($conf->global->PAYPAL_ADD_PAYMENT_URL))