Fix limit
This commit is contained in:
parent
8fc73d1b1b
commit
995f4fa35f
@ -1021,7 +1021,7 @@ class BookKeeping extends CommonObject
|
|||||||
$num = $this->db->num_rows($resql);
|
$num = $this->db->num_rows($resql);
|
||||||
|
|
||||||
$i = 0;
|
$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();
|
$line = new BookKeepingLine();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user