Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
89510864
Commit
89510864
authored
Aug 08, 2004
by
Steven Wittens
Browse files
Tiny code cleanup in user.module.
parent
90581e73
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
89510864
...
...
@@ -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
));
}
}
...
...
modules/user/user.module
View file @
89510864
...
...
@@ -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
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment