* Fix bug when empty labels exists.

This commit is contained in:
dingguodong
2021-06-18 11:05:45 +08:00
parent 52dde68865
commit 8e176c3001
+1
View File
@@ -406,6 +406,7 @@ class gitlabModel extends model
public function isLabelExists($gitlabID, $projectID)
{
$labels = $this->apiGetLabels($gitlabID, $projectID);
if(empty($labels)) return false;
foreach($labels as $label)
{
if(strpos($label->name, $this->config->gitlab->taskLabel->name) == 0) return true;