diff --git a/modules/user.module b/modules/user.module index 41af5c94fa380f9118948c4c5bc7322059e18f72..ee69d0beb52405c32bdea963b1325c4dbc216861 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 41af5c94fa380f9118948c4c5bc7322059e18f72..ee69d0beb52405c32bdea963b1325c4dbc216861 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); }