summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2024-03-26 17:00:18 +0100
committerGitHub <noreply@github.com>2024-03-26 17:00:18 +0100
commit42f4e6ac34beadf73d8a7b08b0d4ef6920f3d842 (patch)
treee000a62c324d05eca0419beaf6ed679afb0f987d /lib
parent4223c749c9171d0305ece3c510ac36dc89758490 (diff)
parente389e639741ba601b9b7ae5a963e03db23e221fe (diff)
downloadnextcloud-server-42f4e6ac34beadf73d8a7b08b0d4ef6920f3d842.tar.gz
nextcloud-server-42f4e6ac34beadf73d8a7b08b0d4ef6920f3d842.zip
Merge pull request #42931 from hrenard/master
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Group/Group.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php
index d8d1a73762d..57289a4d3ac 100644
--- a/lib/private/Group/Group.php
+++ b/lib/private/Group/Group.php
@@ -184,9 +184,7 @@ class Group implements IGroup {
foreach ($this->backends as $backend) {
if ($backend->implementsActions(\OC\Group\Backend::ADD_TO_GROUP)) {
$backend->addToGroup($user->getUID(), $this->gid);
- if ($this->users) {
- $this->users[$user->getUID()] = $user;
- }
+ $this->users[$user->getUID()] = $user;
$this->dispatcher->dispatchTyped(new UserAddedEvent($this, $user));