Skip to:

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2762 closed defect (bug) (fixed)

bp_friend_get_total_requests_count() not returning count of friend requests

Reported by: djpaul's profile DJPaul Owned by:
Milestone: 1.2.7 Priority: normal
Severity: Version:
Component: Core 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().

Change History (2)

#1 @djpaul
14 years ago

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

(In [3483]) Return correct count of friend requests, fixes #2762 (trunk)

#2 @djpaul
14 years ago

(In [3484]) Return correct count of friend requests, fixes #2762 (branch)

Note: See TracTickets for help on using tickets.