This commit is contained in:
Laurent Destailleur 2020-05-15 13:58:34 +02:00
parent 02b40ae8f6
commit 672ea60ffd

View File

@ -440,7 +440,7 @@ class MyObject extends CommonObject
if ($resql) {
$num = $this->db->num_rows($resql);
$i = 0;
while ($i < min($limit, $num))
while ($i < ($limit ? min($limit, $num) : $num))
{
$obj = $this->db->fetch_object($resql);