diff --git a/htdocs/modulebuilder/template/myobject_list.php b/htdocs/modulebuilder/template/myobject_list.php index 7c3575401e4..ef384edb818 100644 --- a/htdocs/modulebuilder/template/myobject_list.php +++ b/htdocs/modulebuilder/template/myobject_list.php @@ -260,7 +260,7 @@ if (($page * $limit) > $nbtotalofrecords) $offset = 0; } // if total resultset is smaller the limit, no need to do paging. -if ($limit > $nbtotalofrecords) +if (is_numeric($nbtotalofrecords) && $limit > $nbtotalofrecords) { $resql = $result; $num = $nbtotalofrecords;