Skip to:
Content

BuddyPress.org

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's profile johnjamesjacoby Owned by: apeatling's profile 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.

Change History (1)

#1 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.