forked from Wavyzz/dolibarr
Debug v23
This commit is contained in:
@@ -191,7 +191,8 @@ class MyModuleApi extends DolibarrApi
|
||||
$i = 0;
|
||||
if ($result) {
|
||||
$num = $this->db->num_rows($result);
|
||||
while ($i < $num) {
|
||||
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||
while ($i < $min) {
|
||||
$obj = $this->db->fetch_object($result);
|
||||
$tmp_object = new MyObject($this->db);
|
||||
if ($tmp_object->fetch($obj->rowid)) {
|
||||
|
||||
Reference in New Issue
Block a user