diff --git a/plugins/EmailRegistration/emailregister.php b/plugins/EmailRegistration/emailregister.php index 02b78ba936..53eb3778d9 100644 --- a/plugins/EmailRegistration/emailregister.php +++ b/plugins/EmailRegistration/emailregister.php @@ -297,7 +297,7 @@ class EmailregisterAction extends Action $inviter = User::staticGet('id', $this->invitation->user_id); if (!empty($inviter)) { Subscription::start($inviter->getProfile(), - $user->getProfile()); + $this->user->getProfile()); } $this->invitation->delete();