fix registration bug - fatal error when sending email confirmation

darcs-hash:20081209082750-7b5ce-6d06a7b1cda2a9afb6ce8ea64d65df81cc063139.gz
This commit is contained in:
Zach Copley
2008-12-09 03:27:50 -05:00
parent 3f8e60a8fc
commit 792cb7a535
3 changed files with 4 additions and 8 deletions

View File

@@ -263,9 +263,7 @@ class User extends Memcached_DataObject
$profile->query('COMMIT');
if ($email && !$user->email) {
mail_confirm_address($confirm->code,
$profile->nickname,
$email);
mail_confirm_address($user, $confirm->code, $profile->nickname, $email);
}
return $user;