Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 17 years ago

#1025 closed defect (bug) (fixed)

Should declare global $bp in xprofile_insert_field()

Reported by: luka.bernardi Owned by:
Priority: major Milestone: 1.1
Component: Version:
Severity: Keywords:
Cc:

Description

On line 807 it's used

$bp->profile->field_types

In the following calling

if ( !in_array( $type, $bp->profile->field_types ) )
		return false;

I assume that $bp is the global variable so it's necessary declare

 global $bp

inside the function.

Change History (2)

#1 @djpaul
17 years ago

  • Milestone1.1

#2 @apeatling
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [1897]) Fixes #1025 props luka.bernardi

Note: See TracTickets for help on using tickets.