Skip to:
Content

BuddyPress.org

Changeset 5646


Ignore:
Timestamp:
01/21/2012 11:49:33 AM (10 years ago)
Author:
djpaul
Message:

Prevent PHP Notices when retrieving a user's profile field that hasn't had a value set. Fixes #3929, props CoenJacobs for initial patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-template.php

    r5593 r5646  
    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'] ) && ! empty( $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
Note: See TracChangeset for help on using the changeset viewer.