- Patch #111697 by wesley: properly initialized user->time to prevent warnings/errors.
parent
e187c8d957
commit
4d731dd369
|
@ -742,6 +742,7 @@ function drupal_anonymous_user($session = '') {
|
||||||
$user->roles = array();
|
$user->roles = array();
|
||||||
$user->roles[DRUPAL_ANONYMOUS_RID] = 'anonymous user';
|
$user->roles[DRUPAL_ANONYMOUS_RID] = 'anonymous user';
|
||||||
$user->session = $session;
|
$user->session = $session;
|
||||||
|
$user->cache = 0;
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue