* Modify page error.

This commit is contained in:
caoyanyi
2022-01-20 05:37:33 +00:00
parent 7e96eb9f68
commit f87294adf7
4 changed files with 25 additions and 18 deletions
+1 -1
View File
@@ -820,7 +820,7 @@ class gitlab extends control
$this->app->loadClass('pager', $static = true);
$recTotal = count($branches);
$pager = new pager($recTotal, $recPerPage, $pageID);
$branchList = array_chunk($branches, $pager->recPerPage);
$branchList = is_array($branches) ? array_chunk($branches, $pager->recPerPage) : array();
$this->view->keyword = $keyword;
$this->view->pager = $pager;