From 0ed294ff523ce55010b786937fe45ac4f94270ae Mon Sep 17 00:00:00 2001 From: bachy Date: Tue, 19 Jun 2012 17:23:21 +0200 Subject: [PATCH] entity_translation compatibility Signed-off-by: bachy --- corresponding_entity_references.crud.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corresponding_entity_references.crud.inc b/corresponding_entity_references.crud.inc index 4ad5e83b..a2ce6a5d 100644 --- a/corresponding_entity_references.crud.inc +++ b/corresponding_entity_references.crud.inc @@ -170,7 +170,7 @@ function corresponding_entity_references_update($home_entity, $keys, $process_un // Detect whether the reference already exists. $exists = FALSE; - if (isset($referenced_entity->{$keys['away_field']}[$referenced_entity->language]) && !empty($referenced_entity->{$keys['away_field']}[LANGUAGE_NONE])) { + if (isset($referenced_entity->{$keys['away_field']}[$referenced_entity->language]) || !empty($referenced_entity->{$keys['away_field']}[LANGUAGE_NONE])) { foreach ($referenced_entity->{$keys['away_field']}[LANGUAGE_NONE] as $data) { if ($data['target_id'] == $home_entity->$ids['home']) { $exists = TRUE;