mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #10006 from nextcloud/group-exists-details
Fix groupExists when a backend provides group details
This commit is contained in:
commit
cfb50fdeaf
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ class Manager extends PublicEmitter implements IGroupManager {
|
|||
foreach ($this->backends as $backend) {
|
||||
if ($backend->implementsActions(\OC\Group\Backend::GROUP_DETAILS)) {
|
||||
$groupData = $backend->getGroupDetails($gid);
|
||||
if (is_array($groupData)) {
|
||||
if (is_array($groupData) && !empty($groupData)) {
|
||||
// take the display name from the first backend that has a non-null one
|
||||
if (is_null($displayName) && isset($groupData['displayName'])) {
|
||||
$displayName = $groupData['displayName'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue