Skip to content

Commit

Permalink
cast $task->done to bool so that it doesn't show up as "0" to the JS,
Browse files Browse the repository at this point in the history
which will interpret that as a true value, when it's not.
  • Loading branch information
bharat committed Jan 29, 2010
1 parent df3db40 commit 56d04b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/server_add/controllers/server_add.php
Expand Up @@ -110,7 +110,7 @@ function run($task_id) {
}

$task = task::run($task_id);
print json_encode(array("done" => $task->done,
print json_encode(array("done" => (bool)$task->done,
"status" => $task->status,
"percent_complete" => $task->percent_complete));
}
Expand Down

0 comments on commit 56d04b1

Please sign in to comment.