From 89510864b67a087d9283bfeb6beceaab1bd8070e Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sun, 8 Aug 2004 23:19:47 +0000 Subject: [PATCH] Tiny code cleanup in user.module. --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index d94b040d3b6..cc17e5b235a 100644 --- a/modules/user.module +++ b/modules/user.module @@ -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)); } } diff --git a/modules/user/user.module b/modules/user/user.module index d94b040d3b6..cc17e5b235a 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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)); } }