From 1650fe9ef82c921e02f20140609911926c861f7e Mon Sep 17 00:00:00 2001 From: Francis Appels Date: Fri, 11 Nov 2022 11:35:11 +0100 Subject: [PATCH] Fix warning in reception list third-party type --- htdocs/reception/list.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/reception/list.php b/htdocs/reception/list.php index 58df4aaaa70..0f52e3e4277 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)) { $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']++;