From ba11d85f7f9a8f40d96d44bc899c89e2ea9bcb23 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 6 Sep 2023 15:21:35 +0800 Subject: [PATCH] * Fix bug #38276. --- module/repo/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/repo/control.php b/module/repo/control.php index 5be6a84ee3..b2c2320bb3 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -1380,7 +1380,7 @@ class repo extends control $gitlabList = $this->loadModel('gitlab')->getList(); $gitlab = empty($server) ? array_shift($gitlabList) : $this->gitlab->getById($server); - $repoList = $this->repoZen->getGitlabNotExistRepos($gitlab); + $repoList = $gitlab ? $this->repoZen->getGitlabNotExistRepos($gitlab) : array(); $products = $this->loadModel('product')->getPairs('', 0, '', 'all');