Closed (fixed)
Project:
Webform
Version:
7.x-4.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2012 at 05:12 UTC
Updated:
9 Aug 2012 at 03:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
liam morlandI am not getting the error you report. Your patch would prevent a number of 0 being processed by number_format(). You may find is_numeric() to be a useful function for what you are trying to do, if the problem still exists.
Comment #2
acbramley commentedI can reproduce this error every time, after exporting the csv reload the page and you should see it (or have a look in the watchdog). This patch is better.
Comment #3
quicksketchCommitted #2 to 6.x-3.x, 7.x-3.x, and 7.x-4.x. Thanks guys!
Comment #4
quicksketchThough I am curious why this problem would ever happen... non-numeric data shouldn't really be in the number component's data. In any case this results in more robust code, so I'm not opposed to including it.