summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-09 10:49:26 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-09 10:49:26 +0000
commit51b02213310345ed754d635cdd834faa415225cd (patch)
tree0c57a6cbc26240861590ac60ccc42a9fe1268ab7 /modules
parentdb5311d144d067ae1774b5cf6b395c77ac209a6c (diff)
downloadbrdo-51b02213310345ed754d635cdd834faa415225cd.tar.gz
brdo-51b02213310345ed754d635cdd834faa415225cd.tar.bz2
#165358 by John Morahan: do not regenerate the session when the user is saved without a password specified
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.module2
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();
}