From 605ba570866846524e467572d0c80f0573dbb1db Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 26 Jun 2018 15:00:08 +0200 Subject: [PATCH] Fix groupExists when a backend provides group details Signed-off-by: Robin Appelman --- lib/private/Group/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Group/Manager.php b/lib/private/Group/Manager.php index 1dd951a107..f1bb6357d0 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'];