[buddypress-trac] [BuddyPress] #1481: number_format dies if value is string/empty/non integer

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Dec 19 20:54:58 UTC 2009


#1481: number_format dies if value is string/empty/non integer
----------------------------+-----------------------------------------------
Reporter:  johnjamesjacoby  |       Owner:  apeatling
    Type:  defect           |      Status:  new      
Priority:  major            |   Milestone:  1.2      
Keywords:                   |  
----------------------------+-----------------------------------------------
 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.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1481>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list