Skip to:

Opened 15 years ago

Closed 15 years ago

#1025 closed defect (bug) (fixed)

Should declare global $bp in xprofile_insert_field()

Reported by: lukabernardi's profile luka.bernardi Owned by:
Milestone: 1.1 Priority: major
Severity: Version:
Component: Keywords:


On line 807 it's used


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
15 years ago

  • Milestone set to 1.1

#2 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.