diff --git a/htdocs/compta/stats/cumul.php b/htdocs/compta/stats/cumul.php index 0d3bba646f4..593bab6c560 100644 --- a/htdocs/compta/stats/cumul.php +++ b/htdocs/compta/stats/cumul.php @@ -91,10 +91,10 @@ function pt ($db, $sql, $date) $bc[0]="class=\"pair\""; $bc[1]="class=\"impair\""; - $result = $db->query($sql); - if ($result) + $resql = $db->query($sql); + if ($resql) { - $num = $db->num_rows(); + $num = $db->num_rows($resql); $i = 0; $total = 0 ; print '
| Cumul : | ".price($total)." |