diff --git a/htdocs/reception/list.php b/htdocs/reception/list.php
index 58df4aaaa70..210f068af0a 100644
--- a/htdocs/reception/list.php
+++ b/htdocs/reception/list.php
@@ -1119,10 +1119,12 @@ while ($i < min($num, $limit)) {
// Type ent
if (!empty($arrayfields['typent.code']['checked'])) {
print '
';
- if (count($typenArray) == 0) {
+ if (!isset($typenArray) || empty($typenArray)) {
$typenArray = $formcompany->typent_array(1);
}
- print $typenArray[$obj->typent_code];
+ if (isset($typenArray[$obj->typent_code])) {
+ print $typenArray[$obj->typent_code];
+ }
print ' | ';
if (!$i) {
$totalarray['nbfield']++;