forked from Wavyzz/dolibarr
fix warning
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user