Merge pull request #18067 from Hystepik/develop#2

Fix Error type ent in fourn/commande/list.php
This commit is contained in:
Laurent Destailleur 2021-07-02 16:02:55 +02:00 committed by GitHub
commit 2595e91f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1407,7 +1407,7 @@ if ($resql) {
// 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 (empty($typenArray)) {
$typenArray = $formcompany->typent_array(1); $typenArray = $formcompany->typent_array(1);
} }
print $typenArray[$obj->typent_code]; print $typenArray[$obj->typent_code];