Commit d5456f36 authored by Maxiweb's avatar Maxiweb Committed by Nedjo Rogers
Browse files

Issue #2936874 by samuel.mortenson, Max Lovric, sickness29: PHP7.2 - Deprecated function: each()

parent b158ce36
......@@ -312,7 +312,8 @@ class FieldCollectionItemEntity extends Entity {
}
$result = $query->execute();
if ($result) {
list($this->hostEntityType, $data) = each($result);
$this->hostEntityType = key($result);
$data = current($result);
if ($this->isInUse()) {
$data_array_keys = array_keys($data);
......
Supports Markdown
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