diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 7bb730b93c2..1e26bd2ed9e 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -1950,6 +1950,10 @@ if ($resql) {
}
print '';
}
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
+ print '';
}
// Ref
@@ -2566,9 +2570,9 @@ if ($resql) {
print '';
}
print '';
- }
- if (!$i) {
- $totalarray['nbfield']++;
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
}
print "\n";