diff options
-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 aa9a5b4f3..b1bc3f96b 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -246,7 +246,7 @@ function user_save($account, $array = array(), $category = 'account') { // If the password changed, delete all open sessions and recreate // the current one. - if (isset($array['pass'])) { + if (!empty($array['pass'])) { sess_destroy_uid($account->uid); sess_regenerate(); } |