summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-26 08:52:24 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-26 08:52:24 +0000
commit6996292d522b4fda3aba99e2c2dec424439cb833 (patch)
treed49e6fbb5bf23f7fb990a90aeaab3a184b3ba777 /modules/user
parent794b53e19523bc1e4c6228d50c3b298314199051 (diff)
downloadbrdo-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.module2
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();
}