From c2a72a10b3a3da85caa56f73bee6b13b3c560887 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Sat, 8 Feb 2025 10:11:58 +0800 Subject: [PATCH] * [misc] adjust gitlab project page data. --- 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 8c5c7b5136..95043ed545 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -709,7 +709,7 @@ class gitlab extends control $this->view->pager = $result['pager']; $this->view->title = $this->lang->gitlab->common . $this->lang->hyphen . $this->lang->gitlab->browseProject; $this->view->gitlabID = $gitlabID; - $this->view->gitlabProjectList = $result['projects']; + $this->view->gitlabProjectList = empty($result['projects']) ? array() : $result['projects']; $this->view->orderBy = $orderBy; $this->view->repoPairs = $repoPairs; $this->display();