Fix warning in reception list third-party type

This commit is contained in:
Francis Appels 2022-11-11 11:35:11 +01:00
parent 125af0867b
commit 1650fe9ef8

View File

@ -1119,10 +1119,12 @@ while ($i < min($num, $limit)) {
// Type ent // Type ent
if (!empty($arrayfields['typent.code']['checked'])) { if (!empty($arrayfields['typent.code']['checked'])) {
print '<td class="center">'; print '<td class="center">';
if (count($typenArray) == 0) { if (!isset($typenArray)) {
$typenArray = $formcompany->typent_array(1); $typenArray = $formcompany->typent_array(1);
} }
print $typenArray[$obj->typent_code]; if (isset($typenArray[$obj->typent_code])) {
print $typenArray[$obj->typent_code];
}
print '</td>'; print '</td>';
if (!$i) { if (!$i) {
$totalarray['nbfield']++; $totalarray['nbfield']++;