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

Fix: wrong min value

parent 6d4c5e4b
Branches
Tags
No related merge requests found
......@@ -132,7 +132,8 @@ class Members extends DolibarrApi
{
$i=0;
$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);
$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