diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 5ec4274b06c..949bca660b9 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -3414,9 +3414,9 @@ function monthArrayOrSelected($selected=0) * @return html Return html output * @see dol_print_error */ -function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok', $ajax=0) +function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok') { - global $langs; + global $conf, $langs; $ret = ''; $out = ''; @@ -3424,24 +3424,24 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok', $ajax=0) if (is_array($mesgarray) && sizeof($mesgarray)) { $langs->load("errors"); - if (! $ajax) $out.= '