summaryrefslogtreecommitdiff
path: root/includes/batch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/batch.inc')
-rw-r--r--includes/batch.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/batch.inc b/includes/batch.inc
index 798d2b3eb..c489f9301 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -179,7 +179,7 @@ function _batch_process() {
include_once($current_set['file']);
}
- $finished = 1;
+ $finished = TRUE;
$task_message = '';
if ((list($function, $args) = reset($current_set['operations'])) && function_exists($function)) {
// Build the 'context' array, execute the function call,
@@ -189,9 +189,9 @@ function _batch_process() {
call_user_func_array($function, array_merge($args, array(&$batch_context)));
}
- if ($finished == 1) {
+ if ($finished == TRUE) {
// Make sure this step isn't counted double when computing $current.
- $finished = 0;
+ $finished = FALSE;
// Remove the operation and clear the sandbox.
array_shift($current_set['operations']);
$current_set['sandbox'] = array();