diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 5f9fb737f5e..209befd462f 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1837,7 +1837,8 @@ else */ if ($id > 0 || ! empty($ref)) { - if ($mesg) print $mesg.'
'; + if (preg_match('/class="error"/',$mesg)) dol_htmloutput_error($mesg); + else dol_htmloutput_mesg($mesg); $result=$object->fetch($id,$ref); if ($result > 0)