2
0
forked from Wavyzz/dolibarr

fix warning

This commit is contained in:
Frédéric FRANCE
2022-10-14 09:28:49 +02:00
parent 57073d68c9
commit 33ef00590f

View File

@@ -1079,7 +1079,7 @@ class FormSetupItem
$tmp = explode(':', $this->type); $tmp = explode(':', $this->type);
$template = $formmail->getEMailTemplate($this->db, $tmp[1], $user, $this->langs, $this->fieldValue); $template = $formmail->getEMailTemplate($this->db, $tmp[1], $user, $this->langs, $this->fieldValue);
if ($template<0) { if (is_numeric($template) && $template < 0) {
$this->setErrors($formmail->errors); $this->setErrors($formmail->errors);
} }
$out.= $this->langs->trans($template->label); $out.= $this->langs->trans($template->label);