aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 57773378a..6363a97ca 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -99,7 +99,7 @@
if ($page_owner->isMember($_SESSION['user'])) {
add_submenu_item(elgg_echo('groups:leave'), $CONFIG->wwwroot . "action/groups/leave?groups_guid=" . $page_owner->getGUID());
} else {
- if ($vars['entity']->isPublicMembership())
+ if ($page_owner->isPublicMembership())
{
add_submenu_item(elgg_echo('groups:join'),$CONFIG->wwwroot . "action/groups/join?group_guid={$page_owner->getGUID()}");
}