Merge pull request #22825 from fappels/17_fix_receptionlist_warning

FIX: warning in reception list third-party type column
This commit is contained in:
Laurent Destailleur 2022-11-12 12:08:17 +01:00 committed by GitHub
commit 40ca15bcec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1119,10 +1119,12 @@ while ($i < min($num, $limit)) {
// Type ent
if (!empty($arrayfields['typent.code']['checked'])) {
print '<td class="center">';
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 '</td>';
if (!$i) {
$totalarray['nbfield']++;