diff --git a/uc_upsell.module b/uc_upsell.module
index c2a5e26..e09af71 100644
--- a/uc_upsell.module
+++ b/uc_upsell.module
@@ -217,7 +217,9 @@ function theme_upsell_item($node) {
   
   // Get the imagefield to use (or use the default if it's not configured)
   $imagefield = (isset($config['global']['upsell_image'])) ? $config['global']['upsell_image'] : variable_get('uc_image_'. $node->type, 'field_image_cache');
-  $imagefield = $node->{$imagefield[0]}[0]['filepath'];
+  if (!empty(node->{$imagefield[0]}) {
+    $imagefield = $node->{$imagefield[0]}[0]['filepath'];
+  }
   
   $output = '';
 
