Commit ad973366 authored by Steven Wittens's avatar Steven Wittens

- Fix overzealous session wiping

parent 96eb9c6f
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment