diff --git a/core/includes/batch.inc b/core/includes/batch.inc index 358613efb4..402f195c2f 100644 --- a/core/includes/batch.inc +++ b/core/includes/batch.inc @@ -551,7 +551,7 @@ function _batch_finished() { * @see drupal_register_shutdown_function() */ function _batch_shutdown() { - if ($batch = batch_get() && _batch_needs_update()) { + if (($batch = batch_get()) && _batch_needs_update()) { \Drupal::service('batch.storage')->update($batch); } }