From d68810fd4abc30cf9fa1365beda25d87767bffd4 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Thu, 2 Dec 2021 08:54:51 +0800 Subject: [PATCH] * Fix bug #16893. --- module/repo/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/repo/control.php b/module/repo/control.php index 96de1cd557..d962d04c4b 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -169,7 +169,8 @@ class repo extends control if(strtolower($repo->SCM) == 'gitlab') { - $projects = $this->loadModel('gitlab')->apiGetProjects($repo->gitlab); + $gitlabID = isset($repo->gitlab) ? $repo->gitlab : 0; + $projects = $this->loadModel('gitlab')->apiGetProjects($gitlabID); $options = array(); foreach($projects as $project) $options[$project->id] = $project->name_with_namespace;