Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
f4b53134
Commit
f4b53134
authored
Mar 16, 2005
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#18983
by Ber: small code improvement.
parent
3b5589f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/user.module
modules/user.module
+2
-2
modules/user/user.module
modules/user/user.module
+2
-2
No files found.
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'
)
{
...
...
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'
)
{
...
...
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