From 252e84ec590e15132cf2bdb635b28d1a229ba167 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Thu, 3 May 2012 10:37:15 -0700 Subject: [PATCH] Issue #1558548 by tim.plunkett, sun: Fixed Notice: Undefined index: default_image() in image_field_prepare_view(). --- core/modules/image/image.field.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/image/image.field.inc b/core/modules/image/image.field.inc index d3f9b2dc200c..07dc9e390c6e 100644 --- a/core/modules/image/image.field.inc +++ b/core/modules/image/image.field.inc @@ -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']; } -- GitLab