diff --git a/core/includes/batch.inc b/core/includes/batch.inc index 5bfa5fd..57c453d 100644 --- a/core/includes/batch.inc +++ b/core/includes/batch.inc @@ -28,13 +28,13 @@ function _batch_page(Request $request) { $batch = &batch_get(); - if (!$request->has('id')) { + if (!($request_id = $request->get('id'))) { return FALSE; } // Retrieve the current state of the batch. if (!$batch) { - $batch = Drupal::service('batch.storage')->load($request->get('id')); + $batch = Drupal::service('batch.storage')->load($request_id); if (!$batch) { drupal_set_message(t('No active batch.'), 'error'); drupal_goto();