Skip to content

Commit 9ffa7e9

Browse files
committed
Fixed Gitlab groups not being created if they have 1 member.
Looks like I made a silly with a Yoda formatted condition. Fixes #5
1 parent 6eb1398 commit 9ffa7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LdapSyncCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
12121212
continue;
12131213
}
12141214

1215-
if ((!is_array($ldapGroupMembers) || 1 >= count($ldapGroupMembers)) && !$config["gitlab"]["options"]["createEmptyGroups"]) {
1215+
if ((!is_array($ldapGroupMembers) || 1 > count($ldapGroupMembers)) && !$config["gitlab"]["options"]["createEmptyGroups"]) {
12161216
$this->logger->warning(sprintf("Not creating Gitlab group \"%s\" [%s]: No members in directory group, or config gitlab->options->createEmptyGroups is disabled.", $gitlabGroupName, $gitlabGroupPath));
12171217
continue;
12181218
}

0 commit comments

Comments
 (0)