From 238614feb31196ee3c8e9da34b214bbd73d5808f Mon Sep 17 00:00:00 2001
From: Chris Leppanen <chris.leppanen@gmail.com>
Date: Wed, 26 Sep 2012 18:09:15 -0700
Subject: [PATCH] Allow for 0 to be used in the number mapping.

---
 mappers/number.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mappers/number.inc b/mappers/number.inc
index 99e53553..b64c4ee4 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);
-- 
GitLab