summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2012-02-01 14:27:35 (GMT)
committer Gábor Hojtsy2012-02-01 14:27:35 (GMT)
commit4dbee0455169fe00585bf7edba656b7ce0ee2395 (patch)
tree644528912cc3b6c28325ecd209da1520012e8c5f
parent9f4bd9bddb18cca9b76fb842eeb985deda97fb43 (diff)
Issue #600836 by tim.cosgrove, dww, naxoc, Dave Reid: prevent batches from going indefinitely if their 'finished' value becomes bigger than 1
-rw-r--r--includes/batch.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/batch.inc b/includes/batch.inc
index 13e8500..6362987 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -189,7 +189,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 isn't counted double when computing $current.
$finished = 0;
// Remove the operation and clear the sandbox.