From 10244a9d7836d971e670b54c0273325ba65c51da Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 3 Oct 2010 02:42:25 +0000 Subject: - Patch #600836 by tim.cosgrove, dww, naxoc: batch API never terminates if you set ['finished'] > 1. --- includes/batch.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/batch.inc b/includes/batch.inc index d847646bf..a6ff8f665 100644 --- a/includes/batch.inc +++ b/includes/batch.inc @@ -285,7 +285,7 @@ function _batch_process() { ); call_user_func_array($function, array_merge($args, array(&$batch_context))); - if ($finished == 1) { + if ($finished >= 1) { // Make sure this step is not counted twice when computing $current. $finished = 0; // Remove the processed operation and clear the sandbox. -- cgit v1.2.3