From ad973366ab5fffbc0acfceda1139fc852959cbd9 Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Fri, 4 Mar 2005 03:43:41 +0000 Subject: [PATCH] - Fix overzealous session wiping --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user.module b/modules/user.module index 41af5c94fa38..ee69d0beb524 100644 --- a/modules/user.module +++ b/modules/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); } diff --git a/modules/user/user.module b/modules/user/user.module index 41af5c94fa38..ee69d0beb524 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); } -- GitLab