summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-03-25 20:54:33 +0000
committerDries Buytaert <dries@buytaert.net>2007-03-25 20:54:33 +0000
commit4d731dd369588fe327da276267df489ea978cf7e (patch)
tree5f85e5c5f64801e303869cf485c31bc6436def68
parente187c8d957679d6a513963aaaff6399d3c02aeb2 (diff)
downloadbrdo-4d731dd369588fe327da276267df489ea978cf7e.tar.gz
brdo-4d731dd369588fe327da276267df489ea978cf7e.tar.bz2
- Patch #111697 by wesley: properly initialized user->time to prevent warnings/errors.
-rw-r--r--includes/bootstrap.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 43323eb42..13e584452 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -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;
}