From 9cc22004fc5aa2119119d1b54b4adb877162adb7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Jun 2011 09:58:13 +0000 Subject: [PATCH] Use function to notify errors --- htdocs/comm/mailing/fiche.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/mailing/fiche.php b/htdocs/comm/mailing/fiche.php index fc3605adce5..9c12415ac55 100644 --- a/htdocs/comm/mailing/fiche.php +++ b/htdocs/comm/mailing/fiche.php @@ -612,8 +612,9 @@ if ($_GET["action"] == 'create') print_fiche_titre($langs->trans("NewMailing")); - if ($message) print $message."
"; - + if (preg_match('/class="error"/i',$message)) dol_htmloutput_errors($message); + else dol_htmloutput_mesg($message); + print ''; print ''; print '';
'.$langs->trans("MailTitle").'
'.$langs->trans("MailFrom").'