diff options
Diffstat (limited to 'mod/uservalidationbyemail/actions')
-rw-r--r-- | mod/uservalidationbyemail/actions/validate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/uservalidationbyemail/actions/validate.php b/mod/uservalidationbyemail/actions/validate.php index c50053dce..cc4554722 100644 --- a/mod/uservalidationbyemail/actions/validate.php +++ b/mod/uservalidationbyemail/actions/validate.php @@ -28,7 +28,7 @@ foreach ($user_guids as $guid) { $is_validated = uservalidationbyemail_get_user_validation_status($guid); $validate_success = uservalidationbyemail_set_user_validation_status($guid, TRUE); - if (!$is_validated || !$validate_success || !$user->enable()) { + if ($is_validated || !($validate_success && $user->enable())) { $error = TRUE; continue; } |