aboutsummaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/register.php b/actions/register.php
index 748c06ce6..fdf2596fc 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -49,8 +49,10 @@
$new_user->admin = 'yes';
}
- // Send user validation request on register only
- request_user_validation($guid);
+ // Send user validation request on register only
+ global $registering_admin;
+ if (!$registering_admin)
+ request_user_validation($guid);
if (!$new_user->admin)
$new_user->disable('new_user'); // Now disable if not an admin