Created
June 8, 2012 02:19
-
-
Save shirazd/2893077 to your computer and use it in GitHub Desktop.
patch to be applied over franz existing patch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mappers/field.inc b/mappers/field.inc | |
index dd8978c..6c96108 100644 | |
--- a/mappers/field.inc | |
+++ b/mappers/field.inc | |
@@ -111,7 +111,7 @@ function _field_feeds_set_target($source, $entity, $target, $value, $input_forma | |
$field = isset($entity->$target) ? $entity->$target : array(); | |
foreach ($value as $v) { | |
// Check if field value is empty. | |
- if(empty($v[0])){ | |
+ if ((is_array($v) && empty($v[0]) || (!is_array($v) && empty ($v)))) { | |
continue; | |
} | |
if ($v !== FALSE && $v !== NULL && $v !== '') { | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment