This commit is contained in:
wangyuting2
2023-04-27 10:54:36 +08:00
parent f5e367e26f
commit 905d1ae26b
+5 -2
View File
@@ -118,8 +118,11 @@ class pivotModel extends model
$pager->setPageTotal();
if($pager->pageID > $pager->pageTotal) $pager->setPageID($pager->pageTotal);
$pivots = array_chunk($pivots, $pager->recPerPage);
$pivots = $pivots[$pager->pageID - 1];
if($pivots)
{
$pivots = array_chunk($pivots, $pager->recPerPage);
$pivots = $pivots[$pager->pageID - 1];
}
}