]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/register.php
format string, again
[quix0rs-gnu-social.git] / actions / register.php
index 45446dce6a71717f066283ae86969a8bdc23e73c..aacc4fa7b4e3e532f441d29cfa53d71fce7f45bc 100644 (file)
@@ -63,10 +63,10 @@ class RegisterAction extends Action {
                        $this->show_form(_('Email address already exists.'));
                } else if ($password != $confirm) {
                        $this->show_form(_('Passwords don\'t match.'));
-               } else {
+               } else if ($this->register_user($nickname, $password, $email)) {
                        $user = $this->register_user($nickname, $password, $email);
                        if (!$user) {
-                               $this->show_form(_t('Invalid username or password.'));
+                               $this->show_form(_('Invalid username or password.'));
                                return;
                        }
                        # success!