diff --git a/plugins/EmailRegistration/emailregister.php b/plugins/EmailRegistration/emailregister.php index 22e8d59424..02b78ba936 100644 --- a/plugins/EmailRegistration/emailregister.php +++ b/plugins/EmailRegistration/emailregister.php @@ -164,6 +164,13 @@ class EmailregisterAction extends Action function handle($argarray=null) { + $cur = common_current_user(); + + if (!empty($cur)) { + common_redirect(common_local_url('all', array('nickname' => $cur->nickname))); + return; + } + switch ($this->state) { case self::NEWREGISTER: $this->showRegistrationForm();