diff options
Diffstat (limited to 'apps/user_ldap/lib/Db/GroupMembershipMapper.php')
-rw-r--r-- | apps/user_ldap/lib/Db/GroupMembershipMapper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Db/GroupMembershipMapper.php b/apps/user_ldap/lib/Db/GroupMembershipMapper.php index 2c30e947cb0..0868f60d2c5 100644 --- a/apps/user_ldap/lib/Db/GroupMembershipMapper.php +++ b/apps/user_ldap/lib/Db/GroupMembershipMapper.php @@ -47,7 +47,7 @@ class GroupMembershipMapper extends QBMapper { ->from($this->getTableName()) ->executeQuery(); - $groups = $result->fetchAll(); + $groups = array_map(fn ($row) => $row['groupid'], $result->fetchAll()); $result->closeCursor(); return $groups; } |