Skip to content
Snippets Groups Projects
Commit ad973366 authored by Steven Wittens's avatar Steven Wittens
Browse files

- Fix overzealous session wiping

parent 96eb9c6f
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ function user_save($account, $array = array(), $category = 'account') {
}
// Delete a blocked user's sessions to kick them if they are online.
if ($array['status'] == 0) {
if (isset($array['status']) && $array['status'] == 0) {
db_query('DELETE FROM {sessions} WHERE uid = %d', $account->uid);
}
......
......@@ -138,7 +138,7 @@ function user_save($account, $array = array(), $category = 'account') {
}
// Delete a blocked user's sessions to kick them if they are online.
if ($array['status'] == 0) {
if (isset($array['status']) && $array['status'] == 0) {
db_query('DELETE FROM {sessions} WHERE uid = %d', $account->uid);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment