diff --git a/core/includes/session.inc b/core/includes/session.inc index e8127ab..96b141c 100644 --- a/core/includes/session.inc +++ b/core/includes/session.inc @@ -91,7 +91,7 @@ function drupal_session_commit() { return; } - if ($user && $user->isAnonymous() && empty($_SESSION)) { + if ($user->isAnonymous() && empty($_SESSION)) { // There is no session data to store, destroy the session if it was // previously started. if (drupal_session_started()) {