summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-10-03 02:42:25 +0000
committerDries Buytaert <dries@buytaert.net>2010-10-03 02:42:25 +0000
commit10244a9d7836d971e670b54c0273325ba65c51da (patch)
tree6c1fc61f9445abf13c16b9a1580ccaadf80f1a84 /includes
parentf45d9a2892bbb27e70d4be78afdbdd31c4058cca (diff)
downloadbrdo-10244a9d7836d971e670b54c0273325ba65c51da.tar.gz
brdo-10244a9d7836d971e670b54c0273325ba65c51da.tar.bz2
- Patch #600836 by tim.cosgrove, dww, naxoc: batch API never terminates if you set ['finished'] > 1.
Diffstat (limited to 'includes')
-rw-r--r--includes/batch.inc2
1 files changed, 1 insertions, 1 deletions
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.