Commit 2cfd57dc authored by Ra Mänd's avatar Ra Mänd
Browse files

Multiple 'isset(...)' statements can be merged into one.

parent 16c05486
......@@ -1938,7 +1938,7 @@ function field_collection_field_property_set($entity, $name, $value, $langcode,
$items[$delta][$columns[0]] = $value->item_id;
$items[$delta][$columns[1]] = $value->revision_id;
}
elseif (is_array($value) && isset($value['value']) && isset($value['revision_id'])) {
elseif (isset($value['value'], $value['revision_id']) && is_array($value)) {
$items[$delta][$columns[0]] = $value['value'];
$items[$delta][$columns[1]] = $value['revision_id'];
}
......
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