]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
some better breaks on error entry
authorEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:30:25 +0000 (18:30 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 17 Apr 2011 22:30:25 +0000 (18:30 -0400)
plugins/EmailRegistration/emailregister.php

index 28f69ea9e4d289ba7656350f87eb25cb61a60a3f..cda2e8cd6f344dc5bffa89356bd545bb60866843 100644 (file)
@@ -200,7 +200,7 @@ class EmailregisterAction extends Action
                                      '<a href="%s">password recovery</a> 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);