Last modified: 2010-09-19 23:33:08 UTC
When testing the string '0' for validity as 'int', the modifier returns the empty string. This is because the conditional test for simple equality to TRUE: modifier.validate.php (Feb 10 2009) : if (array_key_exists($type, $filters) && filter_var($string, $filters[$type])) Since filter_var returns the filtered data, in this case 0, this test is FALSE. Instead this line should be like this: if (array_key_exists($type, $filters) && filter_var($string, $filters[$type]) !== FALSE)
I just want to add that this is with the Widgets extension version 0.9f.
Yep, seems reasonable. Fixed in r73350. Please test and let me know if that helped.