Opened 15 years ago
Closed 15 years ago
#1481 closed defect (bug) (fixed)
number_format dies if value is string/empty/non integer
Reported by: | johnjamesjacoby | Owned by: | apeatling |
---|---|---|---|
Milestone: | 1.2 | Priority: | major |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: | johnjamesjacoby |
Description
In a situation where a user has no friends or no groups (woe is me), it's possible the number_format filter will bork the whole thing down.
Suggest maybe using (int) in front of return values, or creating a new function to check for (int) values and then number_format it afterwards.
Note: See
TracTickets for help on using
tickets.
(In [2375]) Fixes #1481 - prevent possible number_format() fail. Props jjj