diff --git a/core/includes/common.inc b/core/includes/common.inc index 0b95dcd..559b844 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -5210,6 +5210,7 @@ function drupal_cron_run() { @ignore_user_abort(TRUE); // Prevent session information from being saved while cron is running. + $old_save_session = drupal_save_session(); drupal_save_session(FALSE); // Force the current user to anonymous to ensure consistent permissions on @@ -5276,7 +5277,7 @@ function drupal_cron_run() { } // Restore the user. $GLOBALS['user'] = $original_user; - drupal_save_session(TRUE); + drupal_save_session($old_save_session); return $return; }