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

6.x
Dries Buytaert 2007-03-25 20:54:33 +00:00
parent e187c8d957
commit 4d731dd369
1 changed files with 1 additions and 0 deletions

View File

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