Index: uc_fee.js
===================================================================
--- uc_fee.js	(revision 178)
+++ uc_fee.js	(working copy)
@@ -46,13 +46,17 @@
         var i;
         var j;
         for (j in fees) {
-          key = 'fee_' + fees[j].id;
-          // Check that this fee is a new line item, or updates its amount.
-          if (li_values[key] == undefined || li_values[key] != fees[j].amount) {
-            set_line_item(key, fees[j].name, fees[j].amount, Drupal.settings.ucFeeWeight + fees[j].weight / 10, fees[j].summed, false);
-
-            // Set flag to render all line items at once.
-            render = true;
+          // With the loop above the stupid IE goes inside even if the array is empty,
+          // this is why I have added the conditional below.
+          if (fees[j].id !== undefined) {
+            key = 'fee_' + fees[j].id;
+            // Check that this fee is a new line item, or updates its amount.
+            if (li_values[key] == undefined || li_values[key] != fees[j].amount) {
+              set_line_item(key, fees[j].name, fees[j].amount, Drupal.settings.ucFeeWeight + fees[j].weight / 10, fees[j].summed, false);
+  
+              // Set flag to render all line items at once.
+              render = true;
+            }
           }
         }
         var found;
