aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/register.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/actions/register.php b/actions/register.php
index eb5f24c98..7a8a01c5d 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -47,12 +47,11 @@
$new_user->admin = 'yes';
}
- if (!$new_user->admin)
- $new_user->disable('new_user'); // Now disable if not an admin
-
// Send user validation request on register only
request_user_validation($guid);
+ if (!$new_user->admin)
+ $new_user->disable('new_user'); // Now disable if not an admin
system_message(sprintf(elgg_echo("registerok"),$CONFIG->sitename));