diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php index 3a8c5bc5464..487af51d06f 100644 --- a/htdocs/admin/facture.php +++ b/htdocs/admin/facture.php @@ -360,7 +360,7 @@ foreach ($conf->file->dol_document_root as $dirroot) print "\n"; - if (! empty($module->error)) dol_htmloutput_errors($module->error,'',$conf->global->MAIN_USE_JQUERY_JNOTIFY); + if (! empty($module->error)) dol_htmloutput_errors($module->error,''); } } } diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 949bca660b9..c7b46ca4f03 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -3441,7 +3441,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok') $out.= $langs->trans($mesgstring); if (! $conf->global->MAIN_USE_JQUERY_JNOTIFY) $out.= ''; } - if ($conf->global->MAIN_USE_JQUERY_JNOTIFY) + if ($conf->global->MAIN_USE_JQUERY_JNOTIFY && ! empty($out)) { print '