From 053f78ba971f49658c77464ce796db641ddea029 Mon Sep 17 00:00:00 2001 From: liyuchun Date: Tue, 30 Nov 2021 16:11:08 +0800 Subject: [PATCH] * Fix bug #16893. --- module/gitlab/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 2f7b0356fc..b3baf782bf 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -787,6 +787,7 @@ class gitlab extends control /* 'not[iids]' option in gitlab API has a issue when iids is too long. */ $gitlabIssues = $this->gitlab->apiGetIssues($gitlabID, $projectID, '&state=opened'); + if(!is_array($gitlabIssues)) $gitlabIssues = array(); foreach($gitlabIssues as $index => $issue) { foreach($savedIssueIDList as $savedIssueID)