diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index a06742bb756..0b11e8a78f6 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -1921,6 +1921,9 @@ if ($resql) {
print '';
}
print '';
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
}
// No
@@ -2530,9 +2533,9 @@ if ($resql) {
print '';
}
print '';
- }
- if (!$i) {
- $totalarray['nbfield']++;
+ if (!$i) {
+ $totalarray['nbfield']++;
+ }
}
print "\n";