#2762 closed defect (bug) (fixed)
bp_friend_get_total_requests_count() not returning count of friend requests
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.2.7 | Priority: | normal |
| Severity: | Version: | ||
| Component: | Core | 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)
Note: See
TracTickets for help on using
tickets.
(In [3483]) Return correct count of friend requests, fixes #2762 (trunk)