Opened 15 years ago
Closed 15 years ago
#3929 closed defect (bug) (fixed)
Suppress warnings when $members_template->member->profile_data keys are not set
| Reported by: | CoenJacobs | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6 |
| Component: | Members | Version: | 1.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
In bp-members/bp-members-template.php two keys of $members_template->member->profile_data are called (field_type and field_data), even if they are not set. This results in notices which can easily be prevented.
Attachments (1)
Change History (6)
#1
@
15 years ago
- Summary Surpress warnings when $members_template->member->profile_data keys are not set → Suppress warnings when $members_template->member->profile_data keys are not set
#2
follow-up:
↓ 3
@
15 years ago
- Component Core → Members
- Keywords reporter-feedback added; dev-feedback removed
- Milestone Awaiting Review → 1.6
Patch is valid but I'm interested in how this error is being triggered. Are you adding custom profile field types, or filtering the results?
#3
in reply to: ↑ 2
@
15 years ago
- Keywords reporter-feedback removed
Replying to DJPaul:
Patch is valid but I'm interested in how this error is being triggered. Are you adding custom profile field types, or filtering the results?
I'm simply calling it like this:
bp_member_profile_data( 'field=Location' );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Suppress notices