This file contains 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
$view = new view(); | |
$view->name = 'cis_communications'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'CIS Communications'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
This file contains 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)))) { |