diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php index 05b3a838230..c8fc90d090c 100644 --- a/htdocs/core/class/html.formcompany.class.php +++ b/htdocs/core/class/html.formcompany.class.php @@ -1134,7 +1134,7 @@ class FormCompany extends Form } else { if ($selected > 0) { $arr = $this->typent_array(0); - $typent = $arr[$selected]; + $typent = empty($arr[$selected]) ? '' : $arr[$selected]; $out .= $typent; } else { $out .= " ";