#76931 by robertDouglass. Remove an instance of loading uid 0.

5.x
Neil Drumm 2006-11-07 05:48:53 +00:00
parent 2ec74afec5
commit 235d9a7e4a
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}