Commit 4d731dd3 authored by Dries's avatar Dries

- Patch #111697 by wesley: properly initialized user->time to prevent warnings/errors.

parent e187c8d9
......@@ -742,6 +742,7 @@ function drupal_anonymous_user($session = '') {
$user->roles = array();
$user->roles[DRUPAL_ANONYMOUS_RID] = 'anonymous user';
$user->session = $session;
$user->cache = 0;
return $user;
}
......
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