- if (strcmp($user->email, $email) != 0) {
-
- common_debug('Updating user email from ' . $user->nickname . ' to ' . $nickname,
- __FILE__);
-
- # We don't update email directly; it gets done by confirmemail
-
- $confirm->code = common_good_rand(16);
- $confirm->user_id = $user->id;
- $confirm->address = $email;
- $confirm->address_type = 'email';
-
- $result = $confirm->insert();