Skip to content
Snippets Groups Projects
Commit 238614fe authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Allow for 0 to be used in the number mapping.

parent 87fd644e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment