Index: uc_upsell.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_upsell/uc_upsell.module,v
retrieving revision 1.7.2.1
diff -u -r1.7.2.1 uc_upsell.module
--- uc_upsell.module	27 Mar 2009 00:29:22 -0000	1.7.2.1
+++ uc_upsell.module	4 Apr 2009 18:38:35 -0000
@@ -1006,17 +1006,17 @@
       $output .= l(
         theme('imagecache', uc_upsell_get_imagecache_preset(), $related->image['filepath'] . $related->field_image_cache[0]['filepath'],
           $related->title, $related->title, array('class' => 'buy-related-item')),
-        drupal_get_path_alias("node/". $rel_product->nid), array('attributes' => array('class' => 'buy-related-item'), 'html' => TRUE));
+        drupal_get_path_alias("node/". $related->nid), array('attributes' => array('class' => 'buy-related-item'), 'html' => TRUE));
       $output .= '<br/>';
     }
 
     // Linked title
-    $output .= l($rel_product->title, drupal_get_path_alias("node/". $rel_product->nid), array('attributes' => array('class' => 'buy-related-item'), 'html' => TRUE));
+    $output .= l($related->title, drupal_get_path_alias("node/". $related->nid), array('attributes' => array('class' => 'buy-related-item'), 'html' => TRUE));
 
     // Only show an "add to cart" link if there is a value for Sell Price
     if ($related->sell_price) {
       $output .= '<br />';
-      $output .= l(t('Buy now ') . uc_currency_format($rel_product->sell_price), "cart/add/i{$rel_product->nid}Checkout-p{$rel_product->nid}_q1", array('attributes' => array('class' => 'buy-related-item-buynow'), 'query' => 'destination=cart'));
+      $output .= l(t('Buy now ') . uc_currency_format($related->sell_price), "cart/add/i{$related->nid}Checkout-p{$relatedt->nid}_q1", array('attributes' => array('class' => 'buy-related-item-buynow'), 'query' => 'destination=cart'));
     }
 
     $output .= '</div>';

