Skip to:
Content

BuddyPress.org

Ticket #3929: 3929.diff

File 3929.diff, 891 bytes (added by CoenJacobs, 10 years ago)

Suppress notices

  • bp-members/bp-members-template.php

     
    625625                        $members_template->member->profile_data = BP_XProfile_ProfileData::get_all_for_user( $user_id );
    626626
    627627                // Get the field data if there is data to get
    628                 if ( !empty( $members_template->member->profile_data ) )
     628                if ( !empty( $members_template->member->profile_data ) && ! empty( $members_template->member->profile_data[$field]['field_type'] ) && $members_template->member->profile_data[$field]['field_data'] )
    629629                        $data = xprofile_format_profile_field( $members_template->member->profile_data[$field]['field_type'], $members_template->member->profile_data[$field]['field_data'] );
    630630
    631631                return apply_filters( 'bp_get_member_profile_data', $data );