From 91ccc73180086013c9714c64ad2fca056aefb08e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 May 2011 19:31:28 +0000 Subject: [PATCH] Fix: Use output message style. --- htdocs/compta/facture.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)