Skip to content
Snippets Groups Projects
Commit 659436f1 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: wrong min value

parent 6d4c5e4b
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,8 @@ class Members extends DolibarrApi ...@@ -132,7 +132,8 @@ class Members extends DolibarrApi
{ {
$i=0; $i=0;
$num = $db->num_rows($result); $num = $db->num_rows($result);
while ($i < min($limit, $num)) $min = min($num, ($limit <= 0 ? $num : $limit));
while ($i < $min)
{ {
$obj = $db->fetch_object($result); $obj = $db->fetch_object($result);
$member = new Adherent($this->db); $member = new Adherent($this->db);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment