Fix: Use output message style.

This commit is contained in:
Laurent Destailleur 2011-05-25 19:31:28 +00:00
parent 733e0a54f0
commit 91ccc73180

View File

@ -1837,7 +1837,8 @@ else
*/
if ($id > 0 || ! empty($ref))
{
if ($mesg) print $mesg.'<br>';
if (preg_match('/class="error"/',$mesg)) dol_htmloutput_error($mesg);
else dol_htmloutput_mesg($mesg);
$result=$object->fetch($id,$ref);
if ($result > 0)