[buddypress-trac] [BuddyPress] #4577: [bp-groups][bp-groups-template.php] bp_get_group_join_button() Line: 1524

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Oct 3 21:37:17 UTC 2012


#4577: [bp-groups][bp-groups-template.php] bp_get_group_join_button() Line: 1524
-----------------------------+-----------------------------
 Reporter:  michael.ecklund  |      Owner:  Michael Ecklund
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Groups           |    Version:  1.6.1
 Severity:  normal           |   Keywords:  needs-patch
-----------------------------+-----------------------------
 `Notice: Undefined property: stdClass::$is_member in /wp-
 content/plugins/buddypress/bp-groups/bp-groups-template.php on line 1524`

 Upon passing in the "normal" group data object to the parameter `$group`
 for the function `bp_get_group_join_button($group)` defined at line: 1510

 Which consists of:

 {{{
 stdClass Object
 (
     [id] => 2824
     [creator_id] => 481
     [name] => Air Force W4
     [slug] => air-force-w4
     [description] => Group description...
     [status] => public
     [enable_forum] => 1
     [date_created] => 2012-10-02 19:20:48
 )
 }}}

 It's checking for a portion of the object which doesn't exist, causing an
 error....

 Line: 1524 = `if ( $group->is_member ) {`

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4577>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list