diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index 5a80dc98f81..e07c71b5b27 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -1769,6 +1769,9 @@ if ($resql) {
print '';
}
print '';
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
}
// Ref
if (!empty($arrayfields['cf.ref']['checked'])) {
@@ -2086,9 +2089,9 @@ if ($resql) {
print '';
}
print '';
- }
- if (!$i) {
- $totalarray['nbfield']++;
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
}
print "\n";