Commit 1c5a3947 authored by Steven Wittens's avatar Steven Wittens
Browse files

Bugfix: new user registration was broken.

See: http://drupal.org/node/view/5741
parent 5abbc397
...@@ -789,6 +789,9 @@ function user_register($edit = array()) { ...@@ -789,6 +789,9 @@ function user_register($edit = array()) {
else if (variable_get("user_register", 1) == 0) { else if (variable_get("user_register", 1) == 0) {
$error = t("Public registrations have been disabled by the site administrator."); $error = t("Public registrations have been disabled by the site administrator.");
} }
else {
$success = true;
}
} }
if ($success) { if ($success) {
......
...@@ -789,6 +789,9 @@ function user_register($edit = array()) { ...@@ -789,6 +789,9 @@ function user_register($edit = array()) {
else if (variable_get("user_register", 1) == 0) { else if (variable_get("user_register", 1) == 0) {
$error = t("Public registrations have been disabled by the site administrator."); $error = t("Public registrations have been disabled by the site administrator.");
} }
else {
$success = true;
}
} }
if ($success) { if ($success) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment