diff --git a/mappers/number.inc b/mappers/number.inc index 99e535535c0fee0c273fc8393aa881382f2b8900..b64c4ee4c7356e531aecdc414163505daad6ec81 100644 --- a/mappers/number.inc +++ b/mappers/number.inc @@ -38,9 +38,9 @@ function number_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_n * Ensure that $value is a numeric to avoid database errors. */ function number_feeds_set_target($source, $entity, $target, $value) { - if (empty($value)) { - return; - } + + // Do not perform the regular empty() check here. 0 is a valid value. That's + // really just a performance thing anyway. if (!is_array($value)) { $value = array($value);