Skip to content

Commit 599d8bf

Browse files
committed
Those arrays are strings!
1 parent ba828d7 commit 599d8bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LdapSyncCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
14991499
continue;
15001500
}
15011501

1502-
if ([] !== $usersSync["new"][$gitlabUserId]) {
1502+
if ("" !== $usersSync["new"][$gitlabUserId]) {
15031503
continue;
15041504
}
15051505

@@ -1772,7 +1772,7 @@ private function deployGitlabUsersAndGroups(array $config, string $gitlabInstanc
17721772
// Update groups of which were already in both Gitlab and the directory
17731773
$this->logger?->notice("Updating groups of which were already in both Gitlab and the directory...");
17741774
foreach ($groupsSync["found"] as $gitlabGroupId => $gitlabGroupName) {
1775-
if ([] !== $groupsSync["new"][$gitlabGroupId] || [] !== $groupsSync["extra"][$gitlabGroupId]) {
1775+
if ("" !== $groupsSync["new"][$gitlabGroupId] || "" !== $groupsSync["extra"][$gitlabGroupId]) {
17761776
continue;
17771777
}
17781778

0 commit comments

Comments
 (0)