Skip to:
Content

BuddyPress.org

Ticket #4577: 4577.diff

File 4577.diff, 482 bytes (added by jkudish, 12 years ago)

prevent php notice in bp_get_group_join_button

  • bp-groups/bp-groups-template.php

     
    16241624                        return false;
    16251625
    16261626                // Already a member
    1627                 if ( $group->is_member ) {
     1627                if ( isset( $group->is_member ) && $group->is_member ) {
    16281628
    16291629                        // Stop sole admins from abandoning their group
    16301630                        $group_admins = groups_get_group_admins( $group->id );