Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2762 closed defect (bug) (fixed)

bp_friend_get_total_requests_count() not returning count of friend requests

Reported by: DJPaul Owned by:
Priority: normal Milestone: 1.2.7
Component: Core Version:
Severity: Keywords:
Cc:

Description

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
16 years ago

  • Resolutionfixed
  • Status newclosed

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

#2 @djpaul
16 years ago

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

Note: See TracTickets for help on using tickets.