Commit 252e84ec authored by webchick's avatar webchick
Browse files

Issue #1558548 by tim.plunkett, sun: Fixed Notice: Undefined index:...

Issue #1558548 by tim.plunkett, sun: Fixed Notice: Undefined index: default_image() in image_field_prepare_view().
parent b332a85b
......@@ -203,11 +203,11 @@ function image_field_prepare_view($entity_type, $entities, $field, $instances, $
if (empty($items[$id])) {
$fid = 0;
// Use the default for the instance if one is available.
if ($instances[$id]['settings']['default_image']) {
if (!empty($instances[$id]['settings']['default_image'])) {
$fid = $instances[$id]['settings']['default_image'];
}
// Otherwise, use the default for the field.
elseif ($field['settings']['default_image']) {
elseif (!empty($field['settings']['default_image'])) {
$fid = $field['settings']['default_image'];
}
......
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