Tiny code cleanup in user.module.
parent
90581e7349
commit
89510864b6
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue