Commit 8bfce0ba authored by klausi's avatar klausi Committed by Ra Mänd
Browse files

Issue #3186387 by klausi: Notice: Trying to access array offset on value of...

Issue #3186387 by klausi: Notice: Trying to access array offset on value of type bool in field_collection_field_collection_from_field_context()
parent a39d45fc
......@@ -88,10 +88,8 @@ function field_collection_field_collection_from_field_context($context, $conf) {
}
if (!empty($items) && isset($items[$delta]['value'])) {
$field_collection_item = field_collection_item_load($items[$delta]['value']);
return ctools_context_create('entity:field_collection_item', $items[$delta]['value']);
}
return ctools_context_create('entity:field_collection_item', $items[$delta]['value']);
}
return ctools_context_create_empty('entity:field_collection_item', NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment