diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-26 08:52:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-26 08:52:24 +0000 |
commit | 6996292d522b4fda3aba99e2c2dec424439cb833 (patch) | |
tree | d49e6fbb5bf23f7fb990a90aeaab3a184b3ba777 /modules/user | |
parent | 794b53e19523bc1e4c6228d50c3b298314199051 (diff) | |
download | brdo-6996292d522b4fda3aba99e2c2dec424439cb833.tar.gz brdo-6996292d522b4fda3aba99e2c2dec424439cb833.tar.bz2 |
- Patch #46262 by Neil: load the anonymous user on logout.
Diffstat (limited to 'modules/user')
-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 e91ba37e6..4ac21d46e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -941,7 +941,7 @@ function user_logout() { module_invoke_all('user', 'logout', NULL, $user); // We have to use $GLOBALS to unset a global variable: - unset($GLOBALS['user']); + $user = user_load(array('uid' => 0)); drupal_goto(); } |