check if field is set

This commit is contained in:
Mike Jolley 2012-03-12 13:50:32 +00:00
parent 7123f02c22
commit b7ac9535a2
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ class WC_Checkout {
update_post_meta( $order_id, '_' . $key, $this->posted[$key] );
// User
if ($user_id>0) :
if ($user_id>0 && !empty($this->posted[$key])) :
update_user_meta( $user_id, $key, $this->posted[$key] );
// Special fields