diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 39bc55c..5983fb5 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -2122,7 +2122,7 @@ function drupal_array_merge_deep_array($arrays) { * @return Object - the user object. */ function drupal_anonymous_user() { - $user = new stdClass(); + $user = variable_get('drupal_anonymous_user_object', new stdClass); $user->uid = 0; $user->hostname = ip_address(); $user->roles = array();