Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f4b53134
Commit
f4b53134
authored
Mar 16, 2005
by
Dries Buytaert
Browse files
- Patch
#18983
by Ber: small code improvement.
parent
3b5589f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
f4b53134
...
...
@@ -49,7 +49,7 @@ function user_load($array = array()) {
$params
=
array
();
foreach
(
$array
as
$key
=>
$value
)
{
if
(
$key
==
'pass'
)
{
$query
.
=
"u.
$key
= '%s' AND "
;
$query
.
=
"u.
pass
= '%s' AND "
;
$params
[]
=
md5
(
$value
);
}
else
if
(
$key
==
'uid'
)
{
...
...
@@ -1156,7 +1156,7 @@ function user_edit($category = 'account') {
t
(
'Delete'
));
print
theme
(
'page'
,
$output
);
return
;
}
}
}
else
if
(
$_POST
[
'op'
]
==
t
(
'Delete'
))
{
// Note: we redirect from user/uid/edit to user/uid/delete to make the tabs disappear.
...
...
modules/user/user.module
View file @
f4b53134
...
...
@@ -49,7 +49,7 @@ function user_load($array = array()) {
$params
=
array
();
foreach
(
$array
as
$key
=>
$value
)
{
if
(
$key
==
'pass'
)
{
$query
.
=
"u.
$key
= '%s' AND "
;
$query
.
=
"u.
pass
= '%s' AND "
;
$params
[]
=
md5
(
$value
);
}
else
if
(
$key
==
'uid'
)
{
...
...
@@ -1156,7 +1156,7 @@ function user_edit($category = 'account') {
t
(
'Delete'
));
print
theme
(
'page'
,
$output
);
return
;
}
}
}
else
if
(
$_POST
[
'op'
]
==
t
(
'Delete'
))
{
// Note: we redirect from user/uid/edit to user/uid/delete to make the tabs disappear.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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