From 235d9a7e4a00ed26785042824abc0e10dc874e90 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 7 Nov 2006 05:48:53 +0000 Subject: [PATCH] #76931 by robertDouglass. Remove an instance of loading uid 0. --- modules/user/user.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user/user.module b/modules/user/user.module index 5ad4c26f0bf..c9046393184 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1017,8 +1017,8 @@ function user_logout() { sess_destroy($user->uid); module_invoke_all('user', 'logout', NULL, $user); - // We have to use $GLOBALS to unset a global variable: - $user = user_load(array('uid' => 0)); + // Load the anonymous user + $user = drupal_anonymous_user(); drupal_goto(); }