? 647288.patch
Index: hotel_addons_upgrades/hotel_addons_upgrades.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_hotel/hotel_addons_upgrades/hotel_addons_upgrades.module,v
retrieving revision 1.2
diff -u -p -r1.2 hotel_addons_upgrades.module
--- hotel_addons_upgrades/hotel_addons_upgrades.module  27 Oct 2009 21:38:47 -0000      1.2
+++ hotel_addons_upgrades/hotel_addons_upgrades.module  1 Dec 2009 01:28:59 -0000
@@ -219,10 +219,6 @@ function hotel_addons_upgrades_customer_
   $child_items = array();
   foreach ($form_state['clicked_button']['#post']['qtys'] as $nid => $value) {
     $data = array();
-    if (module_exists('uc_attribute')) {
-      // Add empty attribute array so php doesn't throw an error about invalid foreach arguments.
-      $data['attributes'] = array();
-    }
     $data['module'] = 'hotel_addons_upgrades';
     if (!is_array($value)) {
       $qty = $value;
Index: hotel_booking/hotel_booking.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_hotel/hotel_booking/hotel_booking.module,v
retrieving revision 1.6
diff -u -p -r1.6 hotel_booking.module
--- hotel_booking/hotel_booking.module  30 Nov 2009 23:23:42 -0000      1.6
+++ hotel_booking/hotel_booking.module  1 Dec 2009 01:29:00 -0000
@@ -558,13 +558,6 @@ function hotel_book_room() {
     'children' => $children,
   );

-  // If attributes are enabled, we need to add an empty attributes array to the
-  // product data array, otherwise PHP generates an invalid foreach() arguments
-  // error.
-  if (module_exists('uc_attribute')) {
-    $data['attributes'] = array();
-  }
-
   $redirect_destination = variable_get('hotel_booking_redirect', 'cart');
   uc_cart_add_item($node->nid, 1, $data);
   $cart_item_id = db_last_insert_id('{uc_cart_products}', 'cart_item_id');
