Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
field_collection
Commits
2cfd57dc
Commit
2cfd57dc
authored
Mar 29, 2019
by
Ra Mänd
Browse files
Multiple 'isset(...)' statements can be merged into one.
parent
16c05486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
field_collection.module
field_collection.module
+1
-1
No files found.
field_collection.module
View file @
2cfd57dc
...
...
@@ -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'
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment