diff options
author | Robin Appelman <robin@icewind.nl> | 2018-06-26 15:00:08 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-06-26 15:00:08 +0200 |
commit | 605ba570866846524e467572d0c80f0573dbb1db (patch) | |
tree | d4efe03eccf78b2b059ec986e8f92fb45a777fcf /lib | |
parent | 43f7ea5852db6375efe1fd2f309eb919e3e97feb (diff) | |
download | nextcloud-server-605ba570866846524e467572d0c80f0573dbb1db.tar.gz nextcloud-server-605ba570866846524e467572d0c80f0573dbb1db.zip |
Fix groupExists when a backend provides group details
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-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']; |