diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-01 18:44:41 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-01 18:44:41 +0000 |
commit | ea08f062b263445db028212a7b55d3c7cc97f5b4 (patch) | |
tree | 5bbda5573f0b7cc58e63263bc137e8185676f0e5 | |
parent | 9803bc4321126699ef3293ebd2461fd971e4f8af (diff) | |
download | brdo-ea08f062b263445db028212a7b55d3c7cc97f5b4.tar.gz brdo-ea08f062b263445db028212a7b55d3c7cc97f5b4.tar.bz2 |
- Fix broken session deleting on account blocking.
-rw-r--r-- | modules/user.module | 4 | ||||
-rw-r--r-- | modules/user/user.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module index be537f9b7..fe0c0eb0d 100644 --- a/modules/user.module +++ b/modules/user.module @@ -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 diff --git a/modules/user/user.module b/modules/user/user.module index be537f9b7..fe0c0eb0d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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 |