set taskId as array key

This commit is contained in:
Nicolas Le Goff
2012-05-02 14:47:40 +02:00
parent 06ada79219
commit b5190ecbe6

View File

@@ -126,7 +126,7 @@ class API_V1_adapter extends API_V1_Abstract
$ret = array(); $ret = array();
foreach ($tasks as $task) { foreach ($tasks as $task) {
$ret[] = array( $ret[$task->get_task_id()] = array(
'id' => $task->get_task_id(), 'id' => $task->get_task_id(),
'status' => $task->get_status(), 'status' => $task->get_status(),
'pid' => $task->get_pid(), 'pid' => $task->get_pid(),