=== modified file 'uc_product/uc_product.module'
--- uc_product/uc_product.module	2009-02-09 16:37:04 +0000
+++ uc_product/uc_product.module	2009-02-10 14:09:13 +0000
@@ -733,6 +733,8 @@
   ));
 
   if (module_exists('imagecache') && ($field = variable_get('uc_image_'. $node->type, '')) && isset($node->$field) && file_exists($node->{$field}[0]['filepath'])) {
+    dpm($field);
+    dpm($node->$field);
     $node->content['image'] = array('#value' => theme('uc_product_image', $node->$field, $teaser, $page),
       '#access' => $enabled['image'],
       '#weight' => $weight['image'],
@@ -1215,7 +1217,7 @@
       if (module_exists('imagecache')) {
         if (($field = variable_get('uc_image_'. $node->type, '')) && isset($node->$field) && file_exists($node->{$field}[0]['filepath'])) {
           $image = $node->{$field}[0];
-          $data['image'] = array('#value' => l(theme('imagecache', 'product_list', $image['filepath'], $image['alt'], $image['title']), 'node/'. $node->nid, array('html' => TRUE)));
+          $data['image'] = array('#value' => l(theme('imagecache', 'product_list', $image['filepath'], $image['data']['alt'], $image['data']['title']), 'node/'. $node->nid, array('html' => TRUE)));
         }
         else {
           $data['image'] = array('#value' => t('n/a'));
@@ -1440,15 +1442,14 @@
   // Get the current product image widget.
   $image_widget = uc_product_get_image_widget();
   $image_widget_func = $image_widget['callback'];
-  $image_defaults = array('filepath' => '','alt' => '','title' => '');
 
-  $first = array_merge($image_defaults, array_shift($images));
+  $first = array_shift($images);
 
   $output = '<div class="product-image">';
   if ($image_widget) {
-    $output .= '<a href="'. imagecache_create_url('product_full', $first['filepath']) .'" title="'. $first['title'] .'"'. $image_widget_func($rel_count) .'>';
+    $output .= '<a href="'. imagecache_create_url('product_full', $first['filepath']) .'" title="'. $first['data']['title'] .'"'. $image_widget_func($rel_count) .'>';
   }
-  $output .= theme('imagecache', 'product', $first['filepath'], $first['alt'], $first['title']);
+  $output .= theme('imagecache', 'product', $first['filepath'], $first['data']['alt'], $first['data']['title']);
   /* if (count($images)) {
     $output .= '<br />'. t('Click for more images.');
   } */
@@ -1459,9 +1460,9 @@
   foreach ($images as $thumbnail) {
     $thumbnail = array_merge($image_defaults, $thumbnail);
     if ($image_widget) {
-      $output .= '<a href="'. imagecache_create_url('product_full', $thumbnail['filepath']) .'" title="'. $thumbnail['title'] .'"'. $image_widget_func($rel_count) .'>';
+      $output .= '<a href="'. imagecache_create_url('product_full', $thumbnail['filepath']) .'" title="'. $thumbnail['data']['title'] .'"'. $image_widget_func($rel_count) .'>';
     }
-    $output .= theme('imagecache', 'uc_thumbnail', $thumbnail['filepath'], $thumbnail['alt'], $thumbnail['title']);
+    $output .= theme('imagecache', 'uc_thumbnail', $thumbnail['filepath'], $thumbnail['data']['alt'], $thumbnail['data']['title']);
     if ($image_widget) {
       $output .= '</a>';
     }


