Return after delete so we don't re-add an empty field.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-03-30 23:15:35 +00:00
parent 805df2b129
commit 078c537718
1 changed files with 1 additions and 1 deletions

View File

@ -2150,7 +2150,7 @@ function update_usermeta( $user_id, $meta_key, $meta_value ) {
$meta_value = trim( $meta_value );
if (empty($meta_value)) {
delete_usermeta($user_id, $meta_key);
return delete_usermeta($user_id, $meta_key);
}
$cur = $wpdb->get_row("SELECT * FROM $wpdb->usermeta WHERE user_id = '$user_id' AND meta_key = '$meta_key'");