"; $groups[] = ""; foreach ($userGroups as $group) { $groupUsers = OC_Group::usersInGroup($group); $userCount = 0; foreach ($groupUsers as $user) { if ($user != $self) { $users[] = ""; $userCount++; } } // Don't include the group if only the current user is a member of it if ($userCount > 0) { $groups[] = ""; } } $users[] = ""; $groups[] = ""; $users = array_merge($users, $groups); OCP\JSON::encodedPrint($users); ?>