[buddypress-trac] [BuddyPress] #2695: bp_has_groups ignore user_id

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Oct 29 06:58:36 UTC 2010


#2695: bp_has_groups ignore user_id
---------------------+------------------------------------------------------
 Reporter:  laullon  |       Owner:                       
     Type:  defect   |      Status:  new                  
 Priority:  normal   |   Milestone:  1.2.7                
Component:  Groups   |    Keywords:  bp_has_groups user_id
---------------------+------------------------------------------------------
 The method bp_has_groups ignore the argument user_id.

 Line 142:
 {{{
 /* User filtering */
         if ( !empty( $bp->displayed_user->id ) )
                 $user_id = $bp->displayed_user->id;
 }}}
 Must be:
 {{{
 /* User filtering */
         if ( !empty( $user_id ) )
                 $user_id = $bp->displayed_user->id;
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2695>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list