diff --git a/uc_recurring.module b/uc_recurring.module
index 5c0ff84..1895e84 100644
--- a/uc_recurring.module
+++ b/uc_recurring.module
@@ -806,11 +806,19 @@ function uc_recurring_fee_cancel($rfid, $fee = NULL) {
  */
 function uc_recurring_get_fees($order, $reset = FALSE) {
   static $fees = array();
+
+  // New orders will not have any recurring fees to get so get out now.
+  if (empty($order->order_id)) {
+    return array();
+  }
+
   if ($reset || empty($fees[$order->order_id])) {
     if (!empty($order->products)) {
       $products = array();
       foreach ($order->products as $value) {
-        $products[$value->order_product_id] = $value->order_product_id;
+        if (isset($value->order_product_id)) {
+          $products[$value->order_product_id] = $value->order_product_id;
+        }
       }
 
       $products[] = 1;
