diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/register.php | 6 |
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 |