Update myobject_list.php

This commit is contained in:
Laurent Destailleur 2018-02-08 13:07:05 +01:00 committed by GitHub
parent fdd899def4
commit f5ace81116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;