From d1b41218f8e9aeba544f53b6faee6f7ebc25595d Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 4 Jan 2024 17:18:18 +0800 Subject: [PATCH] * Adjust param type for gitlab. --- module/gitlab/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/gitlab/control.php b/module/gitlab/control.php index d225d1909c..a75318175e 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -849,7 +849,7 @@ class gitlab extends control $this->app->loadClass('pager', true); $recTotal = count($branchList); $pager = new pager($recTotal, $recPerPage, $pageID); - $branchList = array_chunk($branchList, $pager->recPerPage); + $branchList = array_chunk($branchList, (int)$pager->recPerPage); $this->view->gitlab = $this->gitlab->getByID($gitlabID); $this->view->pager = $pager;