diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/lib/groups.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php index 86e6f018e..460eab656 100644 --- a/mod/groups/lib/groups.php +++ b/mod/groups/lib/groups.php @@ -435,7 +435,7 @@ function groups_register_profile_buttons($group) { $url = elgg_get_site_url() . "action/groups/leave?group_guid={$group->getGUID()}"; $url = elgg_add_action_tokens_to_url($url); $actions[$url] = 'groups:leave'; - } else { + } elseif (elgg_is_logged_in()) { // join - admins can always join. $url = elgg_get_site_url() . "action/groups/join?group_guid={$group->getGUID()}"; $url = elgg_add_action_tokens_to_url($url); |