mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
cast $task->done to bool so that it doesn't show up as "0" to the JS,
which will interpret that as a true value, when it's not.
This commit is contained in:
@@ -110,7 +110,7 @@ class Server_Add_Controller extends Admin_Controller {
|
||||
}
|
||||
|
||||
$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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user