# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/ubercart/uc_product/uc_product.module
--- contributions/modules/ubercart/uc_product/uc_product.module Base (1.66)
+++ contributions/modules/ubercart/uc_product/uc_product.module Modifié localement (basé sur 1.66)
@@ -1191,9 +1191,14 @@
  * Implement hook_uc_add_to_cart_data().
  */
 function uc_product_uc_add_to_cart_data($form_values) {
+  if (isset($form_values['nid']) and isset($node->shippable)) {
   $node = node_load($form_values['nid']);
   return array('shippable' => $node->shippable);
 }
+  else {
+    return array('shippable' => FALSE);
+  }
+}
 
 /**
  * Implement hook_uc_product_class().
