aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-06-28 16:07:11 +0200
committerGitHub <noreply@github.com>2022-06-28 16:07:11 +0200
commit52c957e751f868ccf5b2489be268371c28cd1cb8 (patch)
tree0500fcff520fcf0c4c436140c057dd95441f0389 /apps/user_ldap
parentd97f32dd8e51e4fedc6c991b7d08b1c2e43fa99a (diff)
downloadnextcloud-server-52c957e751f868ccf5b2489be268371c28cd1cb8.tar.gz
nextcloud-server-52c957e751f868ccf5b2489be268371c28cd1cb8.zip
simplify
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Jobs/UpdateGroups.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Jobs/UpdateGroups.php b/apps/user_ldap/lib/Jobs/UpdateGroups.php
index 787a14f1241..86b4b2b59f4 100644
--- a/apps/user_ldap/lib/Jobs/UpdateGroups.php
+++ b/apps/user_ldap/lib/Jobs/UpdateGroups.php
@@ -150,7 +150,7 @@ class UpdateGroups extends TimedJob {
->set('owncloudusers', $qb->createParameter('members'))
->where($qb->expr()->eq('owncloudname', $qb->createParameter('groupId')));
- $groupsFromDB = is_array($this->groupsFromDB) ? $this->groupsFromDB : $this->getKnownGroups();
+ $groupsFromDB = $this->getKnownGroups();
foreach ($groups as $group) {
$knownUsers = unserialize($groupsFromDB[$group]['owncloudusers']);
$actualUsers = $this->groupBackend->usersInGroup($group);