diff --git a/htdocs/compta/bank/virement.php b/htdocs/compta/bank/virement.php
index 9dd871b2a58..8b6a658a406 100644
--- a/htdocs/compta/bank/virement.php
+++ b/htdocs/compta/bank/virement.php
@@ -22,7 +22,7 @@
* \file htdocs/compta/bank/virement.php
* \ingroup banque
* \brief Page de saisie d'un virement
- * \version $Id$
+ * \version $Id: virement.php,v 1.47 2011/07/04 10:33:56 eldy Exp $
*/
require("./pre.inc.php");
@@ -138,9 +138,7 @@ $html=new Form($db);
print_fiche_titre($langs->trans("BankTransfer"));
-if ($mesg) {
- print "$mesg
";
-}
+dol_htmloutput_mesg($mesg);
print $langs->trans("TransferDesc");
print "
";
@@ -178,5 +176,5 @@ print "";
$db->close();
-llxFooter('$Date$ - $Revision$');
+llxFooter('$Date: 2011/07/04 10:33:56 $ - $Revision: 1.47 $');
?>
diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php
index 6ce212c314d..5cda1373034 100644
--- a/htdocs/lib/functions.lib.php
+++ b/htdocs/lib/functions.lib.php
@@ -29,7 +29,7 @@
* \file htdocs/lib/functions.lib.php
* \brief A set of functions for Dolibarr
* This file contains all frequently used functions.
- * \version $Id: functions.lib.php,v 1.537 2011/07/04 08:53:01 eldy Exp $
+ * \version $Id: functions.lib.php,v 1.538 2011/07/04 10:33:56 eldy Exp $
*/
// For compatibility during upgrade
@@ -3880,6 +3880,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok', $keepemb
if ($iserror)
{
+ $mesgstring=preg_replace('/<\/div>