? image_13.patch Index: image.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/image/image.module,v retrieving revision 1.197.2.3 diff -u -F^f -r1.197.2.3 image.module --- image.module 23 Aug 2006 20:00:31 -0000 1.197.2.3 +++ image.module 9 Nov 2006 22:19:30 -0000 @@ -458,6 +495,14 @@ function image_get_latest($count = 1, $t */ function image_views_handler_image_img($fieldinfo, $fielddata, $value, $data) { $node = node_load($data->nid); + if ($node->type != 'image') { + if ($node->iid) { + $node = node_load($node->iid); + } + else { + return ''; + } + } return image_display($node, $fielddata['options']); } @@ -466,6 +511,14 @@ function image_views_handler_image_img($ */ function image_views_handler_image_img_link($fieldinfo, $fielddata, $value, $data) { $node = node_load($data->nid); + if ($node->type != 'image') { + if ($node->iid) { + $node = node_load($node->iid); + } + else { + return ''; + } + } return l(image_display($node, $fielddata['options']), "node/{$node->nid}", array(), NULL, NULL, FALSE, TRUE); }