aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/forms
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/views/default/forms')
-rw-r--r--mod/groups/views/default/forms/groups/invite.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/groups/views/default/forms/groups/invite.php b/mod/groups/views/default/forms/groups/invite.php
index 07fe7ad97..3e76c5143 100644
--- a/mod/groups/views/default/forms/groups/invite.php
+++ b/mod/groups/views/default/forms/groups/invite.php
@@ -12,14 +12,13 @@
$group = $vars['entity'];
$owner = get_entity($vars['entity']->owner_guid);
$forward_url = $group->getURL();
-
- $friends = elgg_get_entities_from_relationship($options);
$options = array(
'relationship' => 'friend',
'relationship_guid' => get_loggedin_user()->guid,
'type' => 'user',
'limit' => 9999
);
+ $friends = elgg_get_entities_from_relationship($options);
if ($friends) {
?>
<form action="<?php echo $vars['url']; ?>action/groups/invite" method="post" class="margin_top">