Issue #600836 by tim.cosgrove, dww, naxoc, Dave Reid: prevent batches from going...
authorGábor Hojtsy
Wed, 1 Feb 2012 14:27:35 +0000 (15:27 +0100)
committerGábor Hojtsy
Wed, 1 Feb 2012 14:27:35 +0000 (15:27 +0100)
includes/batch.inc

index 13e8500..6362987 100644 (file)
@@ -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.