From bb7fd0423871801000f48d6e1055a613449dd764 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 5 Aug 2008 13:26:41 +0000 Subject: Fixed accidental group link error git-svn-id: https://code.elgg.org/elgg/trunk@1704 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()}"); } -- cgit v1.2.3