[buddypress-trac] [BuddyPress] #1025: Should declare global $bp in xprofile_insert_field()
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Sep 17 10:54:23 UTC 2009
#1025: Should declare global $bp in xprofile_insert_field()
--------------------------+-------------------------------------------------
Reporter: luka.bernardi | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Keywords: |
--------------------------+-------------------------------------------------
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 [http://codex.buddypress.org/developer-docs/the-
bp-global/ global variable] so it's necessary declare
{{{
global $bp
}}}
inside the function.
--
Ticket URL: <http://trac.buddypress.org/ticket/1025>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list