[buddypress-trac] [BuddyPress] #2762: bp_friend_get_total_requests_count() not returning count of friend requests

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Nov 24 18:55:24 UTC 2010


#2762: bp_friend_get_total_requests_count() not returning count of friend requests
--------------------+-------------------------------------------------------
 Reporter:  DJPaul  |       Owner:       
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:  1.2.7
Component:  Core    |     Version:       
 Keywords:          |  
--------------------+-------------------------------------------------------
 bp_friend_get_total_requests_count() is not treating the result of the
 BP_Friends_Friendship::get_friend_user_ids() method correctly, so the
 function is returning the wrong value.

 BP_Friends_Friendship::get_friend_user_ids() returns an array of the user
 IDs, and it is being typecast to an integer rather than the size of it
 being returned with count().

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


More information about the buddypress-trac mailing list