Opened 15 years ago
Closed 15 years ago
#3676 closed defect (bug) (fixed)
Friend count doesn't iterate when $force_accept is true in friends_add_friend()
| Reported by: | r-a-y | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.6 |
| Component: | Friends | Version: | 1.2 |
| Severity: | normal | Keywords: | dev-feedback |
| Cc: |
Description
When you set the $force_accept parameter to true in friends_add_friend(), the friends count is never iterated because there is no call to friends_update_friend_totals().
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
To be more accurate, the friend count returned by the user meta key "total_friend_count" is never updated.
This affects
friends_get_total_friend_count(), which, in turn, is used inbp_get_displayed_user_nav().