#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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [3483]) Return correct count of friend requests, fixes #2762 (trunk)