Skip to content
Snippets Groups Projects
Commit 10ffeaf0 authored by Alexander Hass's avatar Alexander Hass
Browse files

Issue #2660694 by heddn, hass: PHP 7.0 errors

parent 60b02943
No related branches found
No related tags found
No related merge requests found
...@@ -1654,7 +1654,7 @@ function _linkchecker_parse_fields($entity_type, $bundle_name, $entity, $return_ ...@@ -1654,7 +1654,7 @@ function _linkchecker_parse_fields($entity_type, $bundle_name, $entity, $return_
foreach (field_info_instances($entity_type, $bundle_name) as $field_name => $instance) { foreach (field_info_instances($entity_type, $bundle_name) as $field_name => $instance) {
$field = field_info_field($field_name); $field = field_info_field($field_name);
// #1923328: field_name array may be missing in $entity. // #1923328: field_name array may be missing in $entity.
$entity_field = isset($entity->$field['field_name']) ? $entity->$field['field_name'] : array(); $entity_field = isset($entity->{$field['field_name']}) ? $entity->{$field['field_name']} : array();
switch ($field['type']) { switch ($field['type']) {
// Core fields. // Core fields.
...@@ -1725,7 +1725,7 @@ function _linkchecker_replace_fields($entity_type, $bundle_name, $entity, $old_u ...@@ -1725,7 +1725,7 @@ function _linkchecker_replace_fields($entity_type, $bundle_name, $entity, $old_u
// Collect the fields from this entity_type and bundle. // Collect the fields from this entity_type and bundle.
foreach (field_info_instances($entity_type, $bundle_name) as $field_name => $instance) { foreach (field_info_instances($entity_type, $bundle_name) as $field_name => $instance) {
$field = field_info_field($field_name); $field = field_info_field($field_name);
$entity_field =& $entity->$field['field_name']; $entity_field =& $entity->{$field['field_name']};
switch ($field['type']) { switch ($field['type']) {
// Core fields. // Core fields.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment