diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-26 16:09:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 16:09:53 +0200 |
commit | cfb50fdeaf6df4be2b3984aef43b2010743a66c1 (patch) | |
tree | 8db223473311ede2f35c748d70c7a64a4909ccaf | |
parent | 890cd746e4e55d9ea1855669f76d7c9352111d72 (diff) | |
parent | 605ba570866846524e467572d0c80f0573dbb1db (diff) | |
download | nextcloud-server-cfb50fdeaf6df4be2b3984aef43b2010743a66c1.tar.gz nextcloud-server-cfb50fdeaf6df4be2b3984aef43b2010743a66c1.zip |
Merge pull request #10006 from nextcloud/group-exists-details
Fix groupExists when a backend provides group details
-rw-r--r-- | lib/private/Group/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Group/Manager.php b/lib/private/Group/Manager.php index 1dd951a1078..f1bb6357d0a 100644 --- a/lib/private/Group/Manager.php +++ b/lib/private/Group/Manager.php @@ -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']; |