summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/batch.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/batch.inc b/includes/batch.inc
index a6ff8f665..e4ddb06b9 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -343,7 +343,7 @@ function _batch_process() {
$current = $total - $remaining + $finished;
$percentage = _batch_api_percentage($total, $current);
- $elapsed = $current_set['elapsed'];
+ $elapsed = isset($current_set['elapsed']) ? $current_set['elapsed'] : 0;
$values = array(
'@remaining' => $remaining,
'@total' => $total,