Skip to content
Snippets Groups Projects
Commit f265e7d8 authored by Laurent Destailleur's avatar Laurent Destailleur Committed by GitHub
Browse files

Merge pull request #6888 from hregis/develop_bug2

Fix: wrong min value
parents dc246fa4 fea60e26
Branches
Tags
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