diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-04 03:43:41 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-03-04 03:43:41 +0000 |
commit | ad973366ab5fffbc0acfceda1139fc852959cbd9 (patch) | |
tree | a9138ec28e02437b9c0459aec8ffefd57e743ff6 /modules/user/user.module | |
parent | 96eb9c6f9f72406283b7180d4ee103b1f864a557 (diff) | |
download | brdo-ad973366ab5fffbc0acfceda1139fc852959cbd9.tar.gz brdo-ad973366ab5fffbc0acfceda1139fc852959cbd9.tar.bz2 |
- Fix overzealous session wiping
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 41af5c94f..ee69d0beb 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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); } |