Commit 89510864 authored by Steven Wittens's avatar Steven Wittens

Tiny code cleanup in user.module.

parent 90581e73
......@@ -171,7 +171,7 @@ function user_validate_name($name) {
function user_validate_mail($mail) {
if (!$mail) return t('You must enter an e-mail address.');
if ($mail && !valid_email_address($mail)) {
if (!valid_email_address($mail)) {
return t('The e-mail address "%mail" is not valid.', array('%mail' => $mail));
}
}
......
......@@ -171,7 +171,7 @@ function user_validate_name($name) {
function user_validate_mail($mail) {
if (!$mail) return t('You must enter an e-mail address.');
if ($mail && !valid_email_address($mail)) {
if (!valid_email_address($mail)) {
return t('The e-mail address "%mail" is not valid.', array('%mail' => $mail));
}
}
......
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