* Fix bug#34624.

This commit is contained in:
qixinzhi
2023-04-25 01:55:10 +00:00
parent 9030eeb96d
commit 0da8040c86
+10 -3
View File
@@ -112,9 +112,16 @@ class pivotModel extends model
$pivots = array_merge($pivots, $charts);
}
$pager->setRecTotal(count($pivots));
$pager->setPageTotal();
if($pager->pageID > $pager->pageTotal) $pager->setPageID($pager->pageTotal);
if(!empty($pager))
{
$pager->setRecTotal(count($pivots));
$pager->setPageTotal();
if($pager->pageID > $pager->pageTotal) $pager->setPageID($pager->pageTotal);
$pivots = array_chunk($pivots, $pager->recPerPage);
$pivots = $pivots[$pager->pageID - 1];
}
return $this->processPivot($pivots, false);
}