From 1b102ca9b3c0e32752599b8df373a11af6f40df0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Thu, 20 Jul 2023 17:55:22 +0200 Subject: [PATCH] Fix errors in UpdateGroupsService.php MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Service/UpdateGroupsService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/user_ldap/lib/Service/UpdateGroupsService.php b/apps/user_ldap/lib/Service/UpdateGroupsService.php index ba564819d01..5e463734079 100644 --- a/apps/user_ldap/lib/Service/UpdateGroupsService.php +++ b/apps/user_ldap/lib/Service/UpdateGroupsService.php @@ -72,9 +72,9 @@ class UpdateGroupsService { return; } - $this->service->handleKnownGroups(array_intersect($actualGroups, $knownGroups)); - $this->service->handleCreatedGroups(array_diff($actualGroups, $knownGroups)); - $this->service->handleRemovedGroups(array_diff($knownGroups, $actualGroups)); + $this->handleKnownGroups(array_intersect($actualGroups, $knownGroups)); + $this->handleCreatedGroups(array_diff($actualGroups, $knownGroups)); + $this->handleRemovedGroups(array_diff($knownGroups, $actualGroups)); $this->logger->debug('service "updateGroups" – Finished.'); } @@ -150,7 +150,7 @@ class UpdateGroupsService { $this->logger->info('service "updateGroups" – new group "' . $createdGroup . '" found.'); $users = $this->groupBackend->usersInGroup($createdGroup); - $groupObject = $this->groupManager->get($group); + $groupObject = $this->groupManager->get($createdGroup); if ($groupObject instanceof IGroup) { $this->dispatcher->dispatchTyped(new GroupCreatedEvent($groupObject)); } -- 2.39.5