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
ea08f062
Commit
ea08f062
authored
Mar 01, 2005
by
Steven Wittens
Browse files
- Fix broken session deleting on account blocking.
parent
9803bc43
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
ea08f062
...
...
@@ -138,8 +138,8 @@ function user_save($account, $array = array(), $category = 'account') {
}
// Delete a blocked user's sessions to kick them if they are online.
if
(
$
user
->
status
==
0
)
{
db_query
(
'DELETE FROM {sessions} WHERE uid = %d'
,
$
user
->
uid
);
if
(
$
array
[
'
status
'
]
==
0
)
{
db_query
(
'DELETE FROM {sessions} WHERE uid = %d'
,
$
account
->
uid
);
}
// Refresh user object
...
...
modules/user/user.module
View file @
ea08f062
...
...
@@ -138,8 +138,8 @@ function user_save($account, $array = array(), $category = 'account') {
}
// Delete a blocked user's sessions to kick them if they are online.
if
(
$
user
->
status
==
0
)
{
db_query
(
'DELETE FROM {sessions} WHERE uid = %d'
,
$
user
->
uid
);
if
(
$
array
[
'
status
'
]
==
0
)
{
db_query
(
'DELETE FROM {sessions} WHERE uid = %d'
,
$
account
->
uid
);
}
// Refresh user object
...
...
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