diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 41449c2fb85..bda27dc71b3 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -336,7 +336,7 @@ function cache_get($key) { // cache timer. The cache variable is loaded into the $user object by // sess_read() in session.inc. else { - if ($user->cache > $cache->created) { + if (isset($user->cache) && ($user->cache > $cache->created)) { // This cache data is too old and thus not valid for us, ignore it. return 0; }