From f5ace81116681974d4bb29ebceafe8cefb94f972 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 8 Feb 2018 13:07:05 +0100 Subject: [PATCH] Update myobject_list.php --- htdocs/modulebuilder/template/myobject_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;