Commit 235d9a7e authored by drumm's avatar drumm
Browse files

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

parent 2ec74afe
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment