Index: amazon.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/amazon/amazon.module,v
retrieving revision 1.27.2.26
diff -u -r1.27.2.26 amazon.module
--- amazon.module	25 Feb 2010 06:41:30 -0000	1.27.2.26
+++ amazon.module	4 Oct 2010 00:26:53 -0000
@@ -9,7 +9,7 @@
  * save configuration and setup.
  */
 
-define('AMAZON_ECS_SCHEMA', '2009-03-31');
+define('AMAZON_ECS_SCHEMA', '2010-09-01');
 define('AMAZON_PARTICIPANT_TYPES', 'Author,Artist,Actor,Director,Creator');
 
 // Other common sizes include SwatchImage, TinyImage, and ThumbnailImage.
@@ -514,8 +514,13 @@
 
   // And the customer reviews.
   if (isset($xml->CustomerReviews)) {
+    $item['customerreviews'] = array(
+      'AverageRating' => (string)$xml->CustomerReviews->AverageRating,
+      'TotalReviews' => (string)$xml->CustomerReviews->TotalReviews,
+      'IFrameURL' => (string)$xml->CustomerReviews->IFrameURL,
+    );
     foreach($xml->CustomerReviews->Review as $data) {
-      $item['customerreviews'][] = array(
+      $item['customerreviews']['Review'][] = array(
         'rating' => (string)$data->Rating,
         'date' => (string)$data->Date,
         'summary' => (string)$data->Summary,

