Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 16 years ago

#1481 closed defect (bug) (fixed)

number_format dies if value is string/empty/non integer

Reported by: johnjamesjacoby Owned by: apeatling
Priority: major Milestone: 1.2
Component: Version:
Severity: 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.

Change History (1)

#1 @apeatling
16 years ago

  • Resolutionfixed
  • Status newclosed

(In [2375]) Fixes #1481 - prevent possible number_format() fail. Props jjj

Note: See TracTickets for help on using tickets.