From 0d067af7551bb545d3f3c8fb904ae0dfd5ab0400 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 May 2024 19:05:53 +0200 Subject: [PATCH] Fix warnings --- htdocs/core/class/html.formcompany.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .= " ";