Commit ca8d4c29 authored by yched's avatar yched
Browse files

Issue #1230398 fillowup by andypost: Fixed unset var *after* using it

parent 6e25df9c
...@@ -31,8 +31,8 @@ function content_migrate_filefield_field_alter(&$field_value, $instance_value) { ...@@ -31,8 +31,8 @@ function content_migrate_filefield_field_alter(&$field_value, $instance_value) {
$field_value['module'] = 'file'; $field_value['module'] = 'file';
$field_value['type'] = 'file'; $field_value['type'] = 'file';
// Some settings have changed names. // Some settings have changed names.
unset($field_value['settings']['list_field']);
$field_value['settings']['display_field'] = $field_value['settings']['list_field']; $field_value['settings']['display_field'] = $field_value['settings']['list_field'];
unset($field_value['settings']['list_field']);
$field_value['settings']['display_default'] = $field_value['settings']['list_default']; $field_value['settings']['display_default'] = $field_value['settings']['list_default'];
unset($field_value['settings']['list_default']); unset($field_value['settings']['list_default']);
} }
......
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