#3124 closed defect (bug) (fixed)
User's topic/reply count functions can return false instead of an integer
Reported by: | SergeyBiryukov | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Component - Users | Keywords: | commit |
Cc: |
Description
The following functions are supposed to always return an integer, but can return false
if the passed $user_id
is empty:
bbp_get_user_topic_count_raw()
bbp_get_user_reply_count_raw()
bbp_get_user_closed_topic_count()
Either the functions should be changed to always return an integer (to match what @return
says), or false
should be documented as another possible @return
value.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Good call. I've been meaning to get rid of the
count_user_posts()
usages anyways, because they're ineffective for our use case (multiple statuses, etc...)