--- contrib/image_attach/image_attach.module 2009-09-17 20:01:39.000000000 +0100 +++ contrib/image_attach/image_attach.module 2009-11-20 08:22:03.000000000 +0000 @@ -382,7 +382,8 @@ function image_attach_nodeapi(&$node, $o } $node->content['image_attach'] = array('#weight' => $weight); if ($teaser_or_body == 'teaser') { - $node->content['image_attach'][$node->iids[0]]['#value'] = theme("image_attach_{$teaser_or_body}", $node, $node->iids[0]); + $first_iid = reset($node->iids); + $node->content['image_attach'][$first_iid]['#value'] = theme("image_attach_{$teaser_or_body}", $node, $first_iid); } else { $content = '';