--- cart.module	Sat Jun 10 16:59:04 2006
+++ cart.module	Fri Jun 30 16:49:16 2006
@@ -883,6 +883,11 @@ function cart_add_item($nid, $qty = 1, $
  */
 function cart_renew_item($nid, $txnid) {
   global $user;
+  if (!$user->uid) {
+          drupal_set_message(t('Please login to continue renewal process'));
+          drupal_goto('user', drupal_get_destination()); 
+          exit;
+  }
   $item = db_fetch_object(db_query("SELECT stp.expires, stp.price_interval, stp.price_unit FROM {ec_transaction} AS st, {ec_transaction_product} AS stp WHERE stp.is_recurring = 1 AND (stp.last_notify < st.expires OR stp.last_notify < stp.expires) AND st.txnid = stp.txnid AND st.uid = %d", $user->uid));
 
   $renewal = null; // hack to get eclipse to stop bugging me
