diff --git a/classes/User.php b/classes/User.php index fcae38c098..6430697822 100644 --- a/classes/User.php +++ b/classes/User.php @@ -334,7 +334,7 @@ class User extends DB_DataObject function emailChanged() { $invites = new Invitation(); - $invites->address = $user->email; + $invites->address = $this->email; $invites->address_type = 'email'; if ($invites->find()) {