Fix limit

This commit is contained in:
Laurent Destailleur 2018-10-14 23:57:07 +02:00
parent aa6996e2d0
commit e29fb85cec

View File

@ -991,7 +991,7 @@ class BookKeeping extends CommonObject
$num = $this->db->num_rows($resql);
$i = 0;
while ($obj = $this->db->fetch_object($resql) && $i < $num)
while (($obj = $this->db->fetch_object($resql)) && ($i < min($limit, $num)))
{
$line = new BookKeepingLine();