### Eclipse Workspace Patch 1.0
#P modules-CVS
Index: uc_mailchimp/uc_mailchimp.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_mailchimp/uc_mailchimp.module,v
retrieving revision 1.1
diff -u -r1.1 uc_mailchimp.module
--- uc_mailchimp/uc_mailchimp.module	24 Oct 2009 12:26:36 -0000	1.1
+++ uc_mailchimp/uc_mailchimp.module	27 Oct 2009 15:40:48 -0000
@@ -293,10 +293,13 @@
  * Implementation of hook_mailchimp_merge_values()
  */
 function uc_mailchimp_mailchimp_merge_values($user) {
+	$out = array('uc_customer_first' => 'first', 'uc_customer_last' => 'last'); 
 $sql = 'SELECT billing_first_name first, billing_last_name last FROM {uc_orders} WHERE uid = %d';
  $name = db_fetch_object(db_query($sql,$user->uid));
- foreach ($name as $key =>$val) {
- 	$out["uc_customer_{$key}"] = $val;
+ if($name){
+    foreach ($name as $key =>$val) {
+ 	  $out["uc_customer_{$key}"] = $val;
+    }
  }
  return $out;
 }
