From: Evan Prodromou Date: Sun, 17 Apr 2011 22:30:25 +0000 (-0400) Subject: some better breaks on error entry X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3996199c6abd6fbe4c42803304d703fa90c3ca21;p=quix0rs-gnu-social.git some better breaks on error entry --- diff --git a/plugins/EmailRegistration/emailregister.php b/plugins/EmailRegistration/emailregister.php index 28f69ea9e4..cda2e8cd6f 100644 --- a/plugins/EmailRegistration/emailregister.php +++ b/plugins/EmailRegistration/emailregister.php @@ -200,7 +200,7 @@ class EmailregisterAction extends Action 'password recovery tool to recover a missing password.'), common_local_url('recoverpassword')); $this->showRegistrationForm(); - break; + return; } $valid = false; @@ -213,6 +213,7 @@ class EmailregisterAction extends Action if (!$valid) { $this->error = _('Not a valid email address.'); $this->showRegistrationForm(); + return; } $confirm = Confirm_address::getAddress($this->email, self::CONFIRMTYPE);