Tiny code cleanup in user.module.

4.5.x
Steven Wittens 2004-08-08 23:19:47 +00:00
parent 90581e7349
commit 89510864b6
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}

View File

@ -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));
}
}