diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index b7971d52c53..9de656fc44e 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -362,8 +362,12 @@ class FormOther
if ($conf->use_javascript_ajax)
{
include_once DOL_DOCUMENT_ROOT . '/core/lib/ajax.lib.php';
- $out.= ajax_combobox($htmlname);
- $nodatarole=' data-role="none"';
+ $htmlforcombo = ajax_combobox($htmlname);
+ if ($htmlforcombo)
+ {
+ $out.= $htmlforcombo;
+ $nodatarole=' data-role="none"';
+ }
}
// Select each sales and print them in a select input
$out.='