Issue #1688016 by sun, lucascaro: Fixed drupal_cron_run() unconditionally re-enables writing of the user session.
parent
1830054811
commit
e5795890a0
|
@ -5114,6 +5114,7 @@ function drupal_cron_run() {
|
|||
@ignore_user_abort(TRUE);
|
||||
|
||||
// Prevent session information from being saved while cron is running.
|
||||
$original_session_saving = drupal_save_session();
|
||||
drupal_save_session(FALSE);
|
||||
|
||||
// Force the current user to anonymous to ensure consistent permissions on
|
||||
|
@ -5176,7 +5177,7 @@ function drupal_cron_run() {
|
|||
}
|
||||
// Restore the user.
|
||||
$GLOBALS['user'] = $original_user;
|
||||
drupal_save_session(TRUE);
|
||||
drupal_save_session($original_session_saving);
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue