Code sample
This commit is contained in:
parent
f78cf68fb4
commit
28d8acbf6a
@ -259,8 +259,8 @@ $sql.=$db->order($sortfield,$sortorder);
|
|||||||
$nbtotalofrecords = '';
|
$nbtotalofrecords = '';
|
||||||
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
|
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
|
||||||
{
|
{
|
||||||
$result = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
$nbtotalofrecords = $db->num_rows($result);
|
$nbtotalofrecords = $db->num_rows($resql);
|
||||||
}
|
}
|
||||||
// if total resultset is smaller then paging size (filtering), goto and load page 0
|
// if total resultset is smaller then paging size (filtering), goto and load page 0
|
||||||
if (($page * $limit) > $nbtotalofrecords)
|
if (($page * $limit) > $nbtotalofrecords)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user