Skip to:
Content

BuddyPress.org

Ticket #5411: 5411.diff

File 5411.diff, 1.0 KB (added by imath, 12 years ago)
  • bp-groups/bp-groups-classes.php

    diff --git bp-groups/bp-groups-classes.php bp-groups/bp-groups-classes.php
    index 2ed7441..e31aac3 100644
    class BP_Groups_Group { 
    183183                        $this->status             = $group->status;
    184184                        $this->enable_forum       = $group->enable_forum;
    185185                        $this->date_created       = $group->date_created;
     186                        $this->total_member_count = groups_get_groupmeta( $this->id, 'total_member_count' );
    186187
    187188                        if ( ! empty( $this->args['populate_extras'] ) ) {
    188189                                $this->last_activity      = groups_get_groupmeta( $this->id, 'last_activity' );
    189                                 $this->total_member_count = groups_get_groupmeta( $this->id, 'total_member_count' );
    190190                                $this->is_member          = BP_Groups_Member::check_is_member( bp_loggedin_user_id(), $this->id );
    191191                                $this->is_invited         = BP_Groups_Member::check_has_invite( bp_loggedin_user_id(), $this->id );
    192192                                $this->is_pending         = BP_Groups_Member::check_for_membership_request( bp_loggedin_user_id(), $this->id );