Skip to content

Commit

Permalink
Remove deprecated each() function.
Browse files Browse the repository at this point in the history
By @sjerdo and solideogloria.
D7-3015005
  • Loading branch information
laryn committed Oct 11, 2023
1 parent c9fd948 commit 252d7a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/FeedsFieldCollectionProcessor.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class FeedsFieldCollectionProcessor extends FeedsProcessor {
$query->fieldCondition($this->config['identifier_field_name'], 'value', $field_collection_item->identifier_field);
$result = $query->execute();

list($EntityType, $data) = each($result);
$data = current($result);
$field_collection_item->item_id = $data ? key($data) : FALSE;
}
if (!empty($field_collection_item->item_id)) {
Expand Down Expand Up @@ -178,7 +178,7 @@ class FeedsFieldCollectionProcessor extends FeedsProcessor {
$query->propertyCondition($this->config['guid_field_name'], $value);
}
$result = $query->execute();
list($hostEntityType, $data) = each($result);
$data = current($result);
$target_item->hostEntityId = $data ? key($data) : FALSE;
break;
default:
Expand Down

0 comments on commit 252d7a6

Please sign in to comment.