diff options
author | Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | 2024-03-26 17:00:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 17:00:18 +0100 |
commit | 42f4e6ac34beadf73d8a7b08b0d4ef6920f3d842 (patch) | |
tree | e000a62c324d05eca0419beaf6ed679afb0f987d /lib | |
parent | 4223c749c9171d0305ece3c510ac36dc89758490 (diff) | |
parent | e389e639741ba601b9b7ae5a963e03db23e221fe (diff) | |
download | nextcloud-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.php | 4 |
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)); |