diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 91816b3dae..730b095205 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -174,7 +174,7 @@ class gitlab extends control $accountList[$user] = $openID; } - if(count($repeatUsers)) return $this->send(array('result' => 'fail', 'message' => sprintf($this->lang->gitlab->bindUserError, join(',', $repeatUsers)))); + if(count($repeatUsers)) return $this->send(array('result' => 'fail', 'message' => sprintf($this->lang->gitlab->bindUserError, join(',', array_unique($repeatUsers))))); $user = new stdclass; $user->providerID = $gitlabID;